@angular/core#FactoryProvider TypeScript Examples
The following examples show how to use
@angular/core#FactoryProvider.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: universal-location.ts From universal with MIT License | 5 votes |
UNIVERSAL_LOCATION: FactoryProvider = { provide: LOCATION, deps: [SSR_LOCATION], useFactory: identity, }
Example #2
Source File: universal-navigator.ts From universal with MIT License | 5 votes |
UNIVERSAL_NAVIGATOR: FactoryProvider = {
provide: NAVIGATOR,
deps: [[new Optional(), SSR_USER_AGENT]],
useFactory: navigatorFactory,
}
Example #3
Source File: universal-performance.ts From universal with MIT License | 5 votes |
UNIVERSAL_PERFORMANCE: FactoryProvider = { provide: PERFORMANCE, deps: [], useFactory: performanceFactory, }
Example #4
Source File: universal-user-agent.ts From universal with MIT License | 5 votes |
UNIVERSAL_USER_AGENT: FactoryProvider = { provide: USER_AGENT, deps: [SSR_USER_AGENT], useFactory: identity, }
Example #5
Source File: universal-window.ts From universal with MIT License | 5 votes |
UNIVERSAL_WINDOW: FactoryProvider = {
provide: WINDOW,
deps: [DOCUMENT, [new Optional(), SSR_LOCATION], [new Optional(), SSR_USER_AGENT]],
useFactory: windowFactory,
}
Example #6
Source File: window.helper.ts From matx-angular with MIT License | 5 votes |
windowProvider: FactoryProvider = { provide: WINDOW, useFactory: _window, deps: [] }