NgModel

Stable Directive What it does Creates a FormControl instance from a domain model and binds it to a form control element. The FormControl instance will track the value, user interaction, and validation status of the control and keep the view synced with the model. If used within a parent form, the directive will also register itself with the form as a child control. How to use This directive can be used by itself or as part of a larger form. All you need is the ngModel selector to activate

Testability

Experimental Class Class Overview class Testability { constructor(_ngZone: NgZone) increasePendingRequestCount() : number decreasePendingRequestCount() : number isStable() : boolean whenStable(callback: Function) : void getPendingRequestCount() : number findBindings(using: any, provider: string, exactMatch: boolean) : any[] findProviders(using: any, provider: string, exactMatch: boolean) : any[] } Class Description The Testability service provides testing hooks that c

LocationChangeListener

Experimental Interface Interface Overview interface LocationChangeListener { } Interface Description exported from @angular/common/index, defined in @angular/common/src/location/platform_location.ts

resetFakeAsyncZone()

Experimental Function Class Export export resetFakeAsyncZone() Clears out the shared fake async zone for a test. To be called in a global beforeEach. exported from @angular/core/testing/index defined in @angular/core/testing/fake_async.ts

KeyValueDiffer

Stable Interface Interface Overview interface KeyValueDiffer { diff(object: any) : any onDestroy() : any } Interface Description A differ that tracks changes made to an object over time. Interface Details diff(object: any) : any onDestroy() : any exported from @angular/core/index, defined in @angular/core/src/change_detection/differs/keyvalue_differs.ts

NgControlStatusGroup

Stable Directive Class Overview class NgControlStatusGroup { constructor(cd: ControlContainer) } Selectors [formGroupName] [formArrayName] [ngModelGroup] [formGroup] form:not([ngNoForm]) [ngForm] Class Description Directive automatically applied to Angular form groups that sets CSS classes based on control status (valid/invalid/dirty/etc). Constructor constructor(cd: ControlContainer) exported from @angular/forms/index, defined in @angular/forms/src/directives/ng_control_statu

trigger()

Experimental Function Class Export export trigger(name: string, animation: AnimationMetadata[]) : AnimationEntryMetadata trigger 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. trigger Creates an animation trigger which will a list of state and transition entries that will be eva

NgModuleRef

Stable Class Class Overview class NgModuleRef { injector : Injector componentFactoryResolver : ComponentFactoryResolver instance : T destroy() : void onDestroy(callback: () => void) : void } Class Description Represents an instance of an NgModule created via a NgModuleFactory. NgModuleRef provides access to the NgModule Instance as well other objects related to this NgModule Instance. Class Details injector : Injector The injector that contains all of the providers of the Ng

FormsModule

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

ComponentFixtureAutoDetect

Experimental Const Variable Export export ComponentFixtureAutoDetect exported from @angular/core/testing/index defined in @angular/core/testing/test_bed.ts