【问题标题】:Is using this operator does one way binding while $scope does two way binding?是否使用此运算符进行单向绑定,而 $scope 进行双向绑定?
【发布时间】:2017-06-18 16:19:08
【问题描述】:

在AngularJS中使用this$scope有什么区别,this只做一种数据绑定,而$scope做两种数据绑定?

【问题讨论】:

    标签: angularjs


    【解决方案1】:

    Angular 对 $scope 进行了它对 this 不做的额外处理。

    请参阅Angular: Should I use this or $scope 了解更多信息。

    【讨论】:

      猜你喜欢
      • 2011-03-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-06
      • 1970-01-01
      • 1970-01-01
      • 2020-02-24
      相关资源
      最近更新 更多