ResponseOptions

Experimental Class Class Overview class ResponseOptions { constructor({body, status, headers, statusText, type, url}?: ResponseOptionsArgs) body : string|Object|ArrayBuffer|Blob status : number headers : Headers url : string merge(options?: ResponseOptionsArgs) : ResponseOptions } Class Description Creates a response options object to be optionally provided when instantiating a Response. This class is based on the ResponseInit description in the Fetch Spec. All values are

ChangeDetectorRef

Stable Class Class Overview class ChangeDetectorRef { markForCheck() : void detach() : void detectChanges() : void checkNoChanges() : void reattach() : void } Class Description Class Details markForCheck() : void Marks all ChangeDetectionStrategy ancestors as to be checked. (live demo) @Component({ selector: 'cmp', changeDetection: ChangeDetectionStrategy.OnPush, template: `Number of ticks: {{numberOfTicks}}` }) class Cmp { numberOfTicks = 0; constructor(ref: Chang

KeyValueChangeRecord

Stable Class Class Overview class KeyValueChangeRecord { constructor(key: any) previousValue : any currentValue : any key : any toString() : string } Class Description Constructor constructor(key: any) Class Details previousValue : any currentValue : any key : any toString() : string exported from @angular/core/index, defined in @angular/core/src/change_detection/differs/default_keyvalue_differ.ts

AsyncValidatorFn

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

3. Displaying Data

Interpolation and other forms of property binding help us show app data in the UI. We typically display data in Angular by binding controls in an HTML template to properties of an Angular component. In this chapter, we'll create a component with a list of heroes. Each hero has a name. We'll display the list of hero names and conditionally show a message below the list. The final UI looks like this: Table Of Contents Showing component properties with interpolation Showing an array property wit

Glossary

TypeScript Brief definitions of the most important words in the Angular 2 vocabulary Angular 2 Glossary Angular 2 has a vocabulary of its own. Most Angular 2 terms are everyday English words with a specific meaning within the Angular system. This glossary lists the most prominent terms and a few less familiar ones that have unusual or unexpected definitions. A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Ahead-of-time (AoT) compilation You can compile Angular applications at build-time. By

7. HTTP

We convert our service and components to use Angular's HTTP service Getting and Saving Data Our stakeholders appreciate our progress. Now they want to get the hero data from a server, let users add, edit, and delete heroes, and save these changes back to the server. In this chapter we teach our application to make the corresponding HTTP calls to a remote server's web API. Run the live example for this part. Where We Left Off In the previous chapter, we learned to navigate between the dashboard

NG_VALIDATORS

Stable Const Variable Export export NG_VALIDATORS Providers for validators to be used for FormControls in a form. Provide this using multi: true to add validators. Example BAD FILENAME: ../../../../../_fragments/_api/core/forms/ts/ng_validators/ng_validators-ng_validators.ts.md Current path: docs,ts,latest,api,forms,index,NG_VALIDATORS-let PathToDocs: ../../../../../ exported from @angular/forms/index defined in @angular/forms/src/validators.ts

FormGroupName

Stable Directive What it does Syncs a nested FormGroup to a DOM element. How to use This directive can only be used with a parent FormGroupDirective (selector: [formGroup]). It accepts the string name of the nested FormGroup you want to link, and will look for a FormGroup registered with that name in the parent FormGroup instance you passed into FormGroupDirective. Nested form groups can come in handy when you want to validate a sub-group of a form separately from the rest or when you'd li

PRIMARY_OUTLET

Stable Const What it does Name of the primary outlet. Variable Export export PRIMARY_OUTLET exported from @angular/router/index defined in @angular/router/src/shared.ts