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

AnimationKeyframesSequenceMetadata

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

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

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

AfterViewChecked

Stable Class What it does Lifecycle hook that is called after every check of a component's view. How to use . @Component({selector: 'my-cmp', template: `...`}) class MyComponent implements AfterViewChecked { ngAfterViewChecked() { // ... } } Class Overview class AfterViewChecked { ngAfterViewChecked() : void } Class Description See Lifecycle Hooks Guide. Class Details ngAfterViewChecked() : void exported from @angular/core/index, defined in @angular/core/src/metadata/life

AfterContentChecked

Stable Class What it does Lifecycle hook that is called after every check of a directive's content. How to use . @Component({selector: 'my-cmp', template: `...`}) class MyComponent implements AfterContentChecked { ngAfterContentChecked() { // ... } } Class Overview class AfterContentChecked { ngAfterContentChecked() : void } Class Description See Lifecycle Hooks Guide. Class Details ngAfterContentChecked() : void exported from @angular/core/index, defined in @angular/core