@angular/core APIs
- Component
- NgModule
- OnInit
- Injectable
- Input
- ViewChild
- EventEmitter
- Output
- ElementRef
- OnDestroy
- Inject
- AfterViewInit
- Directive
- enableProdMode
- HostListener
- OnChanges
- PipeTransform
- ChangeDetectorRef
- Pipe
- ChangeDetectionStrategy
- SimpleChanges
- ViewEncapsulation
- HostBinding
- InjectionToken
- NgZone
- TemplateRef
- Optional
- Injector
- Renderer2
- ViewContainerRef
- ModuleWithProviders
- QueryList
- forwardRef
- Type
- ViewChildren
- CUSTOM_ELEMENTS_SCHEMA
- ComponentFactoryResolver
- AfterContentInit
- SkipSelf
- NO_ERRORS_SCHEMA
- ContentChild
- APP_INITIALIZER
- ApplicationRef
- AfterViewChecked
- ComponentRef
- DoCheck
- ContentChildren
- ErrorHandler
- DebugElement
- PLATFORM_ID
- Host
- RendererFactory2
- LOCALE_ID
- SimpleChange
- EmbeddedViewRef
- isDevMode
- Self
- inject
- Provider
- AfterContentChecked
- SecurityContext
- NgModuleRef
- Attribute
- ComponentFactory
- IterableDiffers
- DoBootstrap
- Compiler
- StaticProvider
- VERSION
- IterableDiffer
- FactoryProvider
- ClassProvider
- INJECTOR
- NgModuleFactory
- IterableChangeRecord
- createNgModuleRef
- TrackByFunction
- APP_ID
- ɵNgModuleFactory
- ValueProvider
- Renderer
- AbstractType
- Predicate
- APP_BOOTSTRAP_LISTENER
- RendererType2
- RendererStyleFlags2
- ApplicationModule
- ɵINJECTOR_SCOPE
- createPlatformFactory
- platformCore
Other Related APIs
@angular/core#createPlatformFactory TypeScript Examples
The following examples show how to use
@angular/core#createPlatformFactory.
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: platform-miniprogram.ts From angular-miniprogram with MIT License | 6 votes |
export function platformMiniProgram<T>(
extraProviders: StaticProvider[] = [],
app?: T
) {
return createPlatformFactory(platformCore, 'miniProgram', [
{ provide: APP_TOKEN, useValue: MiniProgramCore.loadApp(app || {}) },
{
provide: MINIPROGRAM_GLOBAL_TOKEN,
useValue: MiniProgramCore.MINIPROGRAM_GLOBAL,
},
])(extraProviders);
}