ReactiveFormsModule

Stable Class Class Overview class ReactiveFormsModule { } Class Description The ng module for reactive forms. Annotations @NgModule({ declarations: [REACTIVE_DRIVEN_DIRECTIVES], providers: [FormBuilder, RadioControlRegistry], exports: [InternalFormsSharedModule, REACTIVE_DRIVEN_DIRECTIVES] }) exported from @angular/forms/index, defined in @angular/forms/src/form_providers.ts

EventEmitter

Stable Class Class Overview class EventEmitter { constructor(isAsync?: boolean) emit(value?: T) subscribe(generatorOrNext?: any, error?: any, complete?: any) : any } Class Description Use by directives and components to emit custom Events. Examples In the following example, Zippy alternatively emits open and close events when its title gets clicked: @Component({ selector: 'zippy', template: ` <div class="zippy"> <div (click)="toggle()">Toggle</div>

AfterContentInit

Stable Class What it does Lifecycle hook that is called after a directive's content has been fully initialized. How to use . @Component({selector: 'my-cmp', template: `...`}) class MyComponent implements AfterContentInit { ngAfterContentInit() { // ... } } Class Overview class AfterContentInit { ngAfterContentInit() : void } Class Description See Lifecycle Hooks Guide. Class Details ngAfterContentInit() : void exported from @angular/core/index, defined in @angular/core/sr

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

NgSwitchCase

Stable Directive What it does Creates a view that will be added/removed from the parent NgSwitch when the given expression evaluate to respectively the same/different value as the switch expression. How to use <container-element [ngSwitch]="switch_expression"> <some-element *ngSwitchCase="match_expression_1">...</some-element> </container-element> Class Overview class NgSwitchCase { constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Obje

transition()

Experimental Function Class Export export transition(stateChangeExpr: string, steps: AnimationMetadata | AnimationMetadata[]) : AnimationStateTransitionMetadata transition is an animation-specific function that is designed to be used inside of Angular2's animation DSL language. If this information is new, please navigate to the component animations metadata page to gain a better understanding of how animations in Angular2 are used. transition declares the sequence of animation steps that wil

wtfCreateScope

Experimental Const Variable Export export wtfCreateScope Create trace scope. Scopes must be strictly nested and are analogous to stack frames, but do not have to follow the stack frames. Instead it is recommended that they follow logical nesting. You may want to use Event Signatures as they are defined in WTF. Used to mark scope entry. The return value is used to leave the scope. var myScope = wtfCreateScope('MyClass#myMethod(ascii someVal)'); someMethod() { var s = myScope('Foo'); // 'F

MessageBusSource

Experimental Interface Interface Overview interface MessageBusSource { initChannel(channel: string, runInZone: boolean) : void attachToZone(zone: NgZone) : void from(channel: string) : EventEmitter<any> } Interface Description Interface Details initChannel(channel: string, runInZone: boolean) : void Sets up a new channel on the MessageBusSource. MUST be called before calling from on the channel. If runInZone is true then the source will emit events inside the angular zone. if

Connection

Experimental Class Class Overview class Connection { readyState : ReadyState request : Request response : any } Class Description Abstract class from which real connections are derived. Class Details readyState : ReadyState request : Request response : any exported from @angular/http/index, defined in @angular/http/src/interfaces.ts

FormControl

Stable Class What it does Tracks the value and validation status of an individual form control. It is one of the three fundamental building blocks of Angular forms, along with FormGroup and FormArray. How to use When instantiating a FormControl, you can pass in an initial value as the first argument. Example: const ctrl = new FormControl('some value'); console.log(ctrl.value); // 'some value' You can also initialize the control with a form state object on instantiation, which includes