NgProbeToken

Experimental Class Class Overview class NgProbeToken { constructor(name: string, token: any) } Class Description Constructor constructor(name: string, token: any) exported from @angular/platform-browser/index, defined in @angular/platform-browser/src/dom/debug/ng_probe.ts

ServerModule

Experimental Class Class Overview class ServerModule { } Class Description The ng module for the server. Annotations @NgModule({imports: [BrowserModule]}) exported from @angular/platform-server/index, defined in @angular/platform-server/src/server.ts

AnimationStyleMetadata

Experimental Class Class Overview class AnimationStyleMetadata { constructor(styles: Array<string|{[key: string]: string | number}>, offset?: number) styles : Array<string|{[key: string]: string | number}> offset : number } Class Description Metadata representing the entry of animations. Instances of this class are provided via the animation DSL when the style animation function is called. Constructor constructor(styles: Array<string|{[key: string]: string | nu

AnimationGroupMetadata

Experimental Class Class Overview class AnimationGroupMetadata { constructor(_steps: AnimationMetadata[]) steps : AnimationMetadata[] } Class Description Metadata representing the entry of animations. Instances of this class are provided via the animation DSL when the group animation function is called. Constructor constructor(_steps: AnimationMetadata[]) Class Details steps : AnimationMetadata[] exported from @angular/core/index, defined in @angular/core/src/animation/metad

common

Module Entry point for all public APIs of the common package. APP_BASE_HREF AsyncPipe CommonModule CurrencyPipe DatePipe DecimalPipe HashLocationStrategy I18nPluralPipe I18nSelectPipe JsonPipe Location LocationChangeEvent LocationChangeListener LocationStrategy LowerCasePipe NgClass NgFor NgIf NgLocalization NgPlural NgPluralCase NgStyle NgSwitch NgSwitchCase NgSwitchDefault NgTemplateOutlet PathLocationStrategy PercentPipe PlatformLocation SlicePipe UpperCasePipe defined in @angular/common/i

OpaqueToken

Stable Class Class Overview class OpaqueToken { constructor(_desc: string) toString() : string } Class Description Creates a token that can be used in a DI Provider. Example (live demo) var t = new OpaqueToken("value"); var injector = Injector.resolveAndCreate([ {provide: t, useValue: "bindingValue"} ]); expect(injector.get(t)).toEqual("bindingValue"); Using an OpaqueToken is preferable to using strings as tokens because of possible collisions caused by multiple providers us

CanActivateChild

Stable Interface What it does Indicates that a class can implement to be a guard deciding if a child route can be activated. How to use class UserToken {} class Permissions { canActivate(user: UserToken, id: string): boolean { return true; } } @Injectable() class CanActivateTeam implements CanActivate { constructor(private permissions: Permissions, private currentUser: UserToken) {} canActivateChild( route: ActivatedRouteSnapshot, state: RouterStateSnapshot ): Obser

SafeStyle

Stable Interface Interface Overview interface SafeStyle { } Interface Description Marker interface for a value that's safe to use as style (CSS). exported from @angular/platform-browser/index, defined in @angular/platform-browser/src/security/dom_sanitization_service.ts

JsonpModule

Experimental Class Class Overview class JsonpModule { } Class Description The module that includes jsonp's providers Annotations @NgModule({ providers: [ // TODO(pascal): use factory type annotations once supported in DI // issue: https://github.com/angular/angular/issues/3183 {provide: Jsonp, useFactory: jsonpFactory, deps: [JSONPBackend, RequestOptions]}, BrowserJsonp, {provide: RequestOptions, useClass: BaseRequestOptions}, {provide: ResponseOptions, useClass

1. Introduction

The Tour of Heroes tutorial takes us through the steps of creating an Angular application in TypeScript. Tour of Heroes: the vision Our grand plan is to build an app to help a staffing agency manage its stable of heroes. Even heroes need to find work. Of course we'll only make a little progress in this tutorial. What we do build will have many of the features we expect to find in a full-blown, data-driven application: acquiring and displaying a list of heroes, editing a selected hero's detail,