AngularJs “controller as” syntax - clarification?

后端 未结 6 646
面向向阳花
面向向阳花 2020-11-22 14:08

I read about the new syntax from angularJS regarding controller as xxx

The syntax InvoiceController as invoice tells Angular

6条回答
  •  清歌不尽
    2020-11-22 14:43

    I believe one particular advantage is clear when you have nested scopes. It will now be completely clear exactly what scope a property reference comes from.

提交回复
热议问题