Angular 2.0. Difference @View @Component

后端 未结 4 2000
一生所求
一生所求 2020-11-29 11:22

Hi. I\'m new to Angular. I\'m testing Angular 2.0.

I read the tuto here and the guide here. In the tuto, the template is specified in the @Component ann

4条回答
  •  没有蜡笔的小新
    2020-11-29 12:03

    As per the ChangeLogs of Angular v2.0.0-beta.11, it is mentioned under breaking changes that @View() annotation (previously deprecated) has been removed. Apps should use the @Component() decorator instead.

    Please have a look in Change logs of Angular2 here.

提交回复
热议问题