Ng模型选项无法使用$ scope变量

时间:2015-10-09 16:15:35

标签: javascript html angularjs angularjs-directive angularjs-ng-model

我的ng-model应该更新   Onblur:马上   打字:0.5秒后。为什么不发生这种情况?



app = angular.module("dailySheetApp", []);
app.controller("dailySheetCtrl", function($scope) {

  $scope.inputBounce= { "updateOn":"default blur","debounce":{"default":500,"blur":0} };


});

<html ng-app="dailySheetApp">
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
  <body ng-controller="dailySheetCtrl">
    <input type="text" ng-model="data" ng-model="inputBounce">
  {{data}}
  </body>
</html>
&#13;
&#13;
&#13;

提前谢谢

0 个答案:

没有答案