core

What it does Marks a class as an Angular component and collects component configuration metadata. How to use . @Component({selector: 'greet', template: 'Hello {{name}}!'}) class Greet { name: string = 'World'; } Description Component decorator allows you to mark a class as an Angular component and provide additional metadata that determines how the component should be processed, instantiated and used at runtime. Components are the most basic building block of an UI in an Angular applic

CookieXSRFStrategy

Experimental Class Class Overview class CookieXSRFStrategy { constructor(_cookieName?: string, _headerName?: string) configureRequest(req: Request) } Class Description XSRFConfiguration sets up Cross Site Request Forgery (XSRF) protection for the application using a cookie. See Cross-Site_RequestForgery(CSRF) for more information on XSRF. Applications can configure custom cookie and header names by binding an instance of this class with different cookieName and headerName values.

Cookbook

Angular 2 Cookbook The Cookbook offers answers to common implementation questions. Each cookbook chapter is a collection of recipes focused on a particular Angular 2 feature or application challenge such as data binding, cross-component interaction, and communicating with a remote server via HTTP. The cookbook is just getting started. Many more recipes are on the way. Each cookbook chapter links to a live sample with every recipe included. Recipes are deliberately brief and code-centric. Each

ControlValueAccessor

Stable Interface Interface Overview interface ControlValueAccessor { writeValue(obj: any) : void registerOnChange(fn: any) : void registerOnTouched(fn: any) : void setDisabledState(isDisabled: boolean) : void } Interface Description A bridge between a control and a native element. A ControlValueAccessor abstracts the operations of writing a new value to a DOM element representing an input control. Please see DefaultValueAccessor for more information. Interface Details writeValue(

ControlContainer

Stable Class Class Overview class ControlContainer { name : string formDirective : Form path : string[] } Class Description A directive that contains multiple NgControls. Only used by the forms module. Class Details name : string formDirective : Form Get the form to which this container belongs. path : string[] Get the path to this container. exported from @angular/forms/index, defined in @angular/forms/src/directives/control_container.ts

ConnectionBackend

Experimental Class Class Overview class ConnectionBackend { createConnection(request: any) : Connection } Class Description Abstract class from which real backends are derived. The primary purpose of a ConnectionBackend is to create new connections to fulfill a given Request. Class Details createConnection(request: any) : Connection exported from @angular/http/index, defined in @angular/http/src/interfaces.ts

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

ComponentRef

Stable Class Class Overview class ComponentRef { C location : ElementRef injector : Injector instance : C hostView : ViewRef changeDetectorRef : ChangeDetectorRef componentType : Type<any> destroy() : void onDestroy(callback: Function) : void } Class Description Represents an instance of a Component created via a ComponentFactory. ComponentRef provides access to the Component Instance as well other objects related to this Component Instance and allows you to destro

ComponentFixtureNoNgZone

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

ComponentFixtureAutoDetect

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