Angular 2 does not support Esle, you have 2 options:
1: use positive case:
<ul *ngIf="!finished" id="time"> <li id='hour' class="chart" data-percent="100"><span>{{hour}} </span></li> <li id='min' class="chart" data-percent="100"><span>{{minute}}</span></li> <li id='second' class="chart" data-percent="100"><span>{{second}}</span</li> </ul> <h4 id="time" *ngIf="finished"> DONE </h4>
2: upgrade the application to Angular 4:
On Linux / Mac:
npm install @angular/{common,compiler,compiler-cli,core,forms,http,platform-browser,platform-browser-dynamic,platform-server,router,animations}@latest typescript@latest --save
On Windows:
npm install @angular/ common@latest @angular/ compiler@latest @angular/ compiler-cli@latest @angular/ core@latest @angular/ forms@latest @angular/ http@latest @angular/ platform-browser@latest @angular/ platform-browser-dynamic@latest @angular/ platform-server@latest @angular/ router@latest @angular/ animations@latest typescript@latest --save
If you rely on animations, import the new BrowserAnimationsModule from the @ angular / platform browser / animations into the root NgModule. Without this code will be compiled and run, but the animation will cause an error. Import from @ angular / core was deprecated, use import from new package import {trigger, state, style, transition, animation} from '@ angular / animation' ;.
http://angularjs.blogspot.com/2017/03/angular-400-now-available.html
source share