【问题标题】:What are the advantages of using controller as syntax instead of $scope?使用控制器作为语法而不是 $scope 有什么好处?
【发布时间】:2015-09-07 08:55:10
【问题描述】:

不同的 Angular 学习材料似乎在做不同的事情之一是传递变量。使用 $scope 或“someCtrl as some”语法有什么区别?有什么优势?我应该坚持使用其中一种还是在某些情况下使用其中一种比另一种更好?

【问题讨论】:

标签: angularjs angularjs-scope mean-stack


【解决方案1】:
猜你喜欢
  • 2015-04-05
  • 2016-05-20
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-10-21
  • 2017-02-03
  • 1970-01-01
  • 2011-02-22
相关资源
最近更新 更多