ComponentFixture

Stable Class Class Overview class ComponentFixture { constructor(componentRef: ComponentRef<T>, ngZone: NgZone, _autoDetect: boolean) debugElement : DebugElement componentInstance : T nativeElement : any elementRef : ElementRef changeDetectorRef : ChangeDetectorRef componentRef : ComponentRef<T> ngZone : NgZone detectChanges(checkNoChanges?: boolean) : void checkNoChanges() : void autoDetectChanges(autoDetect?: boolean) isStable() : boolean whenSta

Sanitizer

Stable Class Class Overview class Sanitizer { sanitize(context: SecurityContext, value: string) : string } Class Description Sanitizer is used by the views to sanitize potentially dangerous values. Class Details sanitize(context: SecurityContext, value: string) : string exported from @angular/core/index, defined in @angular/core/src/security.ts

upgrade

Module Entry point for all public APIs of the upgrade package. UpgradeAdapter UpgradeAdapterRef defined in @angular/upgrade/index.ts

QueryList

Stable Class Class Overview class QueryList { changes : Observable<any> length : number first : T last : T map(fn: (item: T, index: number, array: T[]) => U) : U[] filter(fn: (item: T, index: number, array: T[]) => boolean) : T[] reduce(fn: (prevValue: U, curValue: T, curIndex: number, array: T[]) => U, init: U) : U forEach(fn: (item: T, index: number, array: T[]) => void) : void some(fn: (value: T, index: number, array: T[]) => boolean) : boolean toA

ReceivedMessage

Experimental Class Class Overview class ReceivedMessage { constructor(data: {[key: string]: any}) method : string args : any[] id : string type : string } Class Description Constructor constructor(data: {[key: string]: any}) Class Details method : string args : any[] id : string type : string exported from @angular/platform-webworker/index, defined in @angular/platform-webworker/src/web_workers/shared/service_message_broker.ts

NgLocalization

Experimental Class Class Overview class NgLocalization { getPluralCategory(value: any) : string } Class Description Class Details getPluralCategory(value: any) : string exported from @angular/common/index, defined in @angular/common/src/localization.ts

Data

Stable Type-alias What it does Represents the static data associated with a particular route. See Routes for more details. Interface Overview interface Data { } Interface Description exported from @angular/router/index, defined in @angular/router/src/config.ts

ExtraOptions

Stable Interface What it does Represents options to configure the router. Interface Overview interface ExtraOptions { enableTracing : boolean useHash : boolean initialNavigation : boolean errorHandler : ErrorHandler } Interface Description Interface Details enableTracing : boolean Makes the router log all its internal events to the console. useHash : boolean Enables the location strategy that uses the URL fragment instead of the history API. initialNavigation : boolean Disabl

SpyNgModuleFactoryLoader

Stable Class What it does Allows to simulate the loading of ng modules in tests. How to use const loader = TestBed.get(NgModuleFactoryLoader); @Component({template: 'lazy-loaded'}) class LazyLoadedComponent {} @NgModule({ declarations: [LazyLoadedComponent], imports: [RouterModule.forChild([{path: 'loaded', component: LazyLoadedComponent}])] }) class LoadedModule {} // sets up stubbedModules loader.stubbedModules = {lazyModule: LoadedModule}; router.resetConfig([ {path: 'lazy', l

ElementRef

Stable Security Risk Class Security Risk Permitting direct access to the DOM can make your application more vulnerable to XSS attacks. Carefully review any use of ElementRef in your code. For more detail, see the Security Guide. Class Overview class ElementRef { constructor(nativeElement: any) nativeElement : any } Class Description Constructor constructor(nativeElement: any) Class Details nativeElement : any The underlying native element or null if direct access to native e