@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#Component
- @angular/core#OnInit
- @angular/core#Inject
- @angular/core#ElementRef
- @angular/core#ViewChild
- @angular/core#PLATFORM_ID
- @angular/platform-browser#DomSanitizer
- @angular/forms#FormControl
- @angular/forms#FormGroup
- @angular/router#Router
- @angular/router#NavigationStart
- @angular/router#NavigationEnd
- @angular/router#NavigationError
- @angular/router#NavigationCancel
- @angular/common/http#HttpClient
- @angular/common#isPlatformBrowser
@angular/core#APP_ID TypeScript Examples
The following examples show how to use
@angular/core#APP_ID.
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: app.component.ts From nestjs-angular-starter with MIT License | 6 votes |
constructor(
private router: Router,
private loadingBarService: LoadingBarService,
public appService: AppService,
@Inject(PLATFORM_ID) private platformId: unknown,
@Inject(APP_ID) private appId: string,
) {
if (isPlatformBrowser(platformId))
this.router.events.subscribe(this.navigationInterceptor.bind(this));
}