Property binding ngif not used by any directive on an embedded template

前端 未结 2 1740
小蘑菇
小蘑菇 2021-02-12 19:42

I am creating a simple application in Angular (Angular2 RC4) and I\'m finding it difficult to run the application with the live server in nodejs.

I would like to aid as

2条回答
  •  悲哀的现实
    2021-02-12 20:29

    Angular2 directives are case-sensitive. The directive is *ngIf, with capital 'I'.

    Angular throws an error for *ngif, because it doesn't know what such directive is.

提交回复
热议问题