Module '“angular2/angular2”' has no exported member 'For'

后端 未结 2 886
天涯浪人
天涯浪人 2021-01-05 08:05

I am following the tutorial on the official Angular2 website.

https://angular.io/docs/js/latest/guide/displaying-data.html

Here is my .ts file:



        
2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-05 08:48

    Yes, the renamed for to ng-for. Same with ng-if. Just update it in your ts file and view.

    I have a few samples here if you are interested in some working Angular 2.0 examples: http://www.syntaxsuccess.com/viewarticle/angular-2.0-examples

提交回复
热议问题