JSONPBackend

Experimental Class Class Overview class JSONPBackend { } Class Description A ConnectionBackend that uses the JSONP strategy of making requests. exported from @angular/http/index, defined in @angular/http/src/backends/jsonp_backend.ts

Jsonp

Experimental Class Class Overview class Jsonp { constructor(backend: ConnectionBackend, defaultOptions: RequestOptions) request(url: string|Request, options?: RequestOptionsArgs) : Observable<Response> } Class Description Annotations @Injectable() Constructor constructor(backend: ConnectionBackend, defaultOptions: RequestOptions) Class Details request(url: string|Request, options?: RequestOptionsArgs) : Observable<Response> Performs any type of http request. First

IterableDiffers

Stable Class Class Overview class IterableDiffers { staticcreate(factories: IterableDifferFactory[], parent?: IterableDiffers) : IterableDiffers staticextend(factories: IterableDifferFactory[]) : Provider constructor(factories: IterableDifferFactory[]) factories : IterableDifferFactory[] find(iterable: any) : IterableDifferFactory } Class Description A repository of different iterable diffing strategies used by NgFor, NgClass, and others. Constructor constructor(factories

IterableDifferFactory

Stable Interface Interface Overview interface IterableDifferFactory { supports(objects: any) : boolean create(cdRef: ChangeDetectorRef, trackByFn?: TrackByFn) : IterableDiffer } Interface Description Provides a factory for IterableDiffer. Interface Details supports(objects: any) : boolean create(cdRef: ChangeDetectorRef, trackByFn?: TrackByFn) : IterableDiffer exported from @angular/core/index, defined in @angular/core/src/change_detection/differs/iterable_differs.ts

IterableDiffer

Stable Interface Interface Overview interface IterableDiffer { diff(object: any) : any onDestroy() : any } Interface Description A strategy for tracking changes over time to an iterable. Used for NgFor to respond to changes in an iterable by effecting equivalent changes in the DOM. Interface Details diff(object: any) : any onDestroy() : any exported from @angular/core/index, defined in @angular/core/src/change_detection/differs/iterable_differs.ts

isDevMode()

Experimental Function Class Export export isDevMode() : boolean Returns whether Angular is in development mode. After called once, the value is locked and won't change any more. By default, this is true, unless a user calls enableProdMode before calling this. exported from @angular/core/index defined in @angular/core/src/application_ref.ts

Input

Stable Interface Interface Overview interface Input { bindingPropertyName : string } Interface Description Input decorator and metadata. Interface Details bindingPropertyName : string Name used when instantiating a component in the template. exported from @angular/core/index, defined in @angular/core/src/metadata/directives.ts

InjectSetupWrapper

Experimental Class Class Overview class InjectSetupWrapper { constructor(_moduleDef: () => TestModuleMetadata) inject(tokens: any[], fn: Function) : () => any } Class Description Constructor constructor(_moduleDef: () => TestModuleMetadata) Class Details inject(tokens: any[], fn: Function) : () => any exported from @angular/core/testing/index, defined in @angular/core/testing/test_bed.ts

Injector

Stable Class What it does Injector interface How to use const injector: Injector = ...; injector.get(...); Class Overview class Injector { staticTHROW_IF_NOT_FOUND : _THROW_IF_NOT_FOUND staticNULL : Injector get(token: any, notFoundValue?: any) : any } Class Description For more details, see the Dependency Injection Guide. Example const injector: Injector = ReflectiveInjector.resolveAndCreate([{provide: 'validToken', useValue: 'Value'}]); expect(injector.get('validToken')).t

inject()

Stable Function Class Export export inject(tokens: any[], fn: Function) : () => any Allows injecting dependencies in beforeEach() and it(). Example: beforeEach(inject([Dependency, AClass], (dep, object) => { // some code that uses `dep` and `object` // ... })); it('...', inject([AClass], (object) => { object.doSomething(); expect(...); }) Notes: inject is currently a function because of some Traceur limitation the syntax should eventually becomes it('...', @Inject (object: