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

AnimationEntryMetadata

Experimental Class Class Overview class AnimationEntryMetadata { constructor(name: string, definitions: AnimationStateMetadata[]) name : string definitions : AnimationStateMetadata[] } Class Description Metadata representing the entry of animations. Instances of this class are provided via the animation DSL when the trigger animation function is called. Constructor constructor(name: string, definitions: AnimationStateMetadata[]) Class Details name : string definitions : An

AnimationDriver

Experimental Class Class Overview class AnimationDriver { staticNOOP : AnimationDriver animate(element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[], duration: number, delay: number, easing: string) : AnimationPlayer } Class Description Static Members NOOP : AnimationDriver Class Details animate(element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[], duration: number, delay: number, easing: string) : AnimationPlayer exported from @ang

AnimationAnimateMetadata

Experimental Class Class Overview class AnimationAnimateMetadata { constructor(timings: string|number, styles: AnimationStyleMetadata|AnimationKeyframesSequenceMetadata) timings : string|number styles : AnimationStyleMetadata|AnimationKeyframesSequenceMetadata } Class Description Metadata representing the entry of animations. Instances of this class are provided via the animation DSL when the animate animation function is called. Constructor constructor(timings: string|number

animate()

Experimental Function Class Export export animate(timing: string | number, styles?: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata) : AnimationAnimateMetadata animate 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. animate specifies an animation step that will apply

Angular Modules (NgModule)

Define application modules with @NgModule Angular Modules help organize an application into cohesive blocks of functionality. An Angular Module is a class adorned with the @NgModule decorator function. @NgModule takes a metadata object that tells Angular how to compile and run module code. It identifies the module's own components, directives and pipes, making some of them public so external components can use them. It may add service providers to the application dependency injectors. And there

Angular Module FAQs

Answers to frequently asked questions about @NgModule FAQs Angular Modules help organize an application into cohesive blocks of functionality. The Angular Modules chapter covers the concepts and takes you step by step from the most elementary @NgModule to a multi-faceted sample with lazy loaded modules. This chapter answers the questions many developers ask about Angular Module design and implementation. These FAQs assume that you have already read the Angular Module chapter. Declarations Wha

Angular 1 to 2 Quick Reference

Learn how Angular 1 concepts and techniques map to Angular 2 There are many conceptual and syntactical differences between Angular 1 and Angular 2. This page provides a quick guide to some common Angular 1 syntax and its equivalent in Angular 2. See the Angular 2 syntax in this . Contents This page covers: Template basics - binding and local variables. Template directives - built-in directives ngIf and ngClass. Filters/pipes - built-in filters, known as pipes in Angular 2. Modules/contro

ANALYZE_FOR_ENTRY_COMPONENTS

Experimental Const Variable Export export ANALYZE_FOR_ENTRY_COMPONENTS This token can be used to create a virtual provider that will populate the entryComponents fields of components and ng modules based on its useValue. All components that are referenced in the useValue value (either directly or in a nested array or map) will be added to the entryComponents property. Example The following example shows how the router can populate the entryComponents field of an NgModule based on the router

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