How can I animate *ngFor in Angular?
I need to animate an ngFor list as it is populated and shown. Each element should have a transition, let's say something like this . How can I do that? Günter Zöchbauer It has a few issues because ngFor does a few redundant add/removes which cause items to be animated which shouldn't: import {Component} from 'angular2/core'; import { Component, Directive, OnDestroy, Input } from 'angular2/core'; @Component({ selector: 'my-app', template: `<div (click)="$event.preventDefault()"> <button type="button" (click)="pushItem()">Push</button> <button type="button" (click)="removeItemLast()">Remove Last