Animating UI Components with Angular in a NativeScript Application - Nic Raboy


#1

Learn how to animate UI components using the Angular 2 animation component instead of CSS keyframes.


#2

Hi,

If you don’t manage to make this tutorial works, remember that with the latest version of nativescript-angular you’ll have to import the NativeScriptAnimationModule like so:

import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
import { NativeScriptModule } from "nativescript-angular/nativescript.module";
import {NativeScriptAnimationsModule} from "nativescript-angular/animations"
import { AppComponent } from "./app.component";
@NgModule({
    bootstrap: [
        AppComponent
    ],
    imports: [
        NativeScriptModule,
        NativeScriptAnimationsModule
    ],
    declarations: [
        AppComponent
    ],
    providers: [

    ],
    schemas: [
        NO_ERRORS_SCHEMA
    ]
})
export class AppModule { }