AngularJs “controller as” syntax - clarification?

后端 未结 6 644
面向向阳花
面向向阳花 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:50

    From what I've read, $scope will be removed in Angular 2.0, or at least how we view the use of $scope. It might be good to start using controller as as the release of 2.0 nears.

    Video link here for more discussion on it.

提交回复
热议问题