AngularJS view not updating on model change

后端 未结 4 1666
暗喜
暗喜 2020-12-12 14:31

i\'m trying to figure out how Angular works and am having trouble getting my view to update when the model changes..

HTML

4条回答
  •  死守一世寂寞
    2020-12-12 15:04

    Do not use $scope.$apply() angular already uses it and it can result in this error

    $rootScope:inprog Action Already In Progress

    if you use twice, use $timeout or interval

提交回复
热议问题