How does “Angular 2.0 for TypeScript” (alpha) animation work?

后端 未结 2 875
半阙折子戏
半阙折子戏 2021-01-01 18:42

I am very new in the Angular scene. I just started to learn Angular 2.0 for TypeScript and I was wondering, how the animation (like in a simple HTML with jQuery) works in An

2条回答
  •  遥遥无期
    2021-01-01 19:20

    For your simple "animation" you only need ng-if:

    toggle
    div 2

    BTW, Angular 2 animation is not available yet. The animations documentation has landed.

提交回复
热议问题