AnimationStateMetadata

Experimental Class Class Overview class AnimationStateMetadata { } Class Description exported from @angular/core/index, defined in @angular/core/src/animation/metadata.ts

Visual Studio 2015 QuickStart

Use Visual Studio 2015 with the QuickStart files Some developers prefer Visual Studio as their Interactive Development Environment (IDE). This cookbook describes the steps required to set up and use the Angular 2 QuickStart files in Visual Studio 2015 within an ASP.NET 4.x project. There is no live example for this cookbook because it describes Visual Studio, not the application. ASP.NET 4.x Project The steps for setting up the QuickStart files with an ASP.NET 4.x project in Visual Studio 201

ViewRef

Stable Class Class Overview class ViewRef { destroyed : boolean onDestroy(callback: Function) : any } Class Description Class Details destroyed : boolean onDestroy(callback: Function) : any exported from @angular/core/index, defined in @angular/core/src/linker/view_ref.ts

Routes

Stable Type-alias What it does Represents router configuration. Interface Overview interface Routes { } Interface Description Routes is an array of route configurations. Each one has the following properties: path is a string that uses the route matcher DSL. pathMatch is a string that specifies the matching strategy. component is a component type. redirectTo is the url fragment which will replace the current matched segment. outlet is the name of the outlet the component should be p

PlatformLocation

Stable Class Class Overview class PlatformLocation { getBaseHrefFromDOM() : string onPopState(fn: LocationChangeListener) : void onHashChange(fn: LocationChangeListener) : void pathname : string search : string hash : string replaceState(state: any, title: string, url: string) : void pushState(state: any, title: string, url: string) : void forward() : void back() : void } Class Description Class Details getBaseHrefFromDOM() : string onPopState(fn: LocationChangeListe

Ahead-of-Time Compilation

Learn how to use Ahead-of-time compilation This cookbook describes how to radically improve performance by compiling Ahead of Time (AoT) during a build process. Table of Contents Overview Ahead-of-Time vs Just-in-Time Compile with AoT Bootstrap Tree Shaking Load the bundle Serve the app Source Code Overview Angular component templates consist of a mix of standard html and Angular syntax (e.g. ngIf, ngFor). Expressions like ngIf and ngFor are specific to Angular. The browser cannot execute th

RoutesRecognized

Stable Class What it does Represents an event triggered when routes are recognized. Class Overview class RoutesRecognized { constructor(id: number, url: string, urlAfterRedirects: string, state: RouterStateSnapshot) id : number url : string urlAfterRedirects : string state : RouterStateSnapshot toString() : string } Class Description Constructor constructor(id: number, url: string, urlAfterRedirects: string, state: RouterStateSnapshot) Class Details id : number url :

LocationStrategy

Stable Class Class Overview class LocationStrategy { path(includeHash?: boolean) : string prepareExternalUrl(internal: string) : string pushState(state: any, title: string, url: string, queryParams: string) : void replaceState(state: any, title: string, url: string, queryParams: string) : void forward() : void back() : void onPopState(fn: LocationChangeListener) : void getBaseHref() : string } Class Description LocationStrategy is responsible for representing and reading ro

MockLocationStrategy

Stable Class Class Overview class MockLocationStrategy { constructor() internalBaseHref : string internalPath : string internalTitle : string urlChanges : string[] simulatePopState(url: string) : void path(includeHash?: boolean) : string prepareExternalUrl(internal: string) : string pushState(ctx: any, title: string, path: string, query: string) : void replaceState(ctx: any, title: string, path: string, query: string) : void onPopState(fn: (value: any) => void)

NO_ERRORS_SCHEMA

Experimental Const Variable Export export NO_ERRORS_SCHEMA Defines a schema that will allow any property on any element. exported from @angular/core/index defined in @angular/core/src/metadata/ng_module.ts