BrowserDynamicTestingModule

Stable Class Class Overview class BrowserDynamicTestingModule { } Class Description NgModule for testing. Annotations @NgModule({ exports: [BrowserTestingModule], providers: [ {provide: TestComponentRenderer, useClass: DOMTestComponentRenderer}, ] }) exported from @angular/platform-browser-dynamic/testing/index, defined in @angular/platform-browser-dynamic/testing/index.ts

bootstrapWorkerUi()

Experimental Function Class Export export bootstrapWorkerUi(workerScriptUri: string, customProviders?: Provider[]) : Promise<PlatformRef> Bootstraps the worker ui. exported from @angular/platform-webworker/index defined in @angular/platform-webworker/src/platform-webworker.ts

BaseResponseOptions

Experimental Class Class Overview class BaseResponseOptions { constructor() } Class Description Subclass of ResponseOptions, with default values. Default values: status: 200 headers: empty Headers object This class could be extended and bound to the ResponseOptions class when configuring an Injector, in order to override the default options used by Http to create Responses. Example (live demo) import {provide} from '@angular/core'; import {bootstrap} from '@angular/platform-browser

AUTO_STYLE

Experimental Const Variable Export export AUTO_STYLE exported from @angular/core/index defined in @angular/core/src/animation/metadata.ts

Attribute Directives

Attribute directives attach behavior to elements. An Attribute directive changes the appearance or behavior of a DOM element. In this chapter we will write an attribute directive to change the background color apply the attribute directive to an element in a template respond to user-initiated events pass values into the directive using data binding Try the live example. Directives overview There are three kinds of directives in Angular: Components Structural directives Attribute directives

BaseRequestOptions

Experimental Class Class Overview class BaseRequestOptions { constructor() } Class Description Subclass of RequestOptions, with default values. Default values: method: RequestMethod.Get headers: empty Headers object This class could be extended and bound to the RequestOptions class when configuring an Injector, in order to override the default options used by Http to create and send Requests. Example (live demo) import {provide} from '@angular/core'; import {bootstrap} from '@angu

AsyncValidatorFn

Stable Interface Interface Overview interface AsyncValidatorFn { } Interface Description exported from @angular/forms/index, defined in @angular/forms/src/directives/validators.ts

async()

Stable Function Class Export export async(fn: Function) : (done: any) => any Wraps a test function in an asynchronous test zone. The test will automatically complete when all asynchronous calls within this zone are done. Can be used to wrap an inject call. Example: it('...', async(inject([AClass], (object) => { object.doSomething.then(() => { expect(...); }) }); exported from @angular/core/testing/index defined in @angular/core/testing/async.ts

Attribute

Stable Interface Interface Overview interface Attribute { attributeName : string } Interface Description Attribute decorator and metadata. Interface Details attributeName : string exported from @angular/core/index, defined in @angular/core/src/metadata/di.ts

AsyncPipe

Stable Pipe What it does Unwraps a value from an asynchronous primitive. How to use observable_or_promise_expression | async NgModuleCommonModule Description The async pipe subscribes to an Observable or Promise and returns the latest value it has emitted. When a new value is emitted, the async pipe marks the component to be checked for changes. When the component gets destroyed, the async pipe unsubscribes automatically to avoid potential memory leaks. Examples This example binds a Pr