JSONPConnection

Experimental Class Class Overview class JSONPConnection { readyState : ReadyState request : Request response : Observable<Response> finished(data?: any) : void } Class Description Abstract base class for an in-flight JSONP request. Class Details readyState : ReadyState The ReadyState of this request. request : Request The outgoing HTTP request. response : Observable<Response> An observable that completes with the response, when the request is finished. finished(dat

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

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

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

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

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:

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

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

I18nSelectPipe

Experimental Pipe What it does Generic selector that displays the string that matches the current value. How to use expression | i18nSelect:mapping NgModuleCommonModule Description Where: mapping: is an object that indicates the text that should be displayed for different values of the provided expression. Example @Component( {selector: 'i18n-select-pipe', template: `<div>{{gender | i18nSelect: inviteMap}} </div>`}) export class I18nSelectPipeComponent { gender: str

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