ionic 使用AngularJS ng-model 实现数据双向绑定
AngularJS 实例
绑定输入框的值到 scope 变量中:
<div ng-app="myApp" ng-controller="myCtrl">
<input ng-model="name">
</div> //输入框绑定model
<script>
var app = angular.module('myApp', []);
app.controller('myCtrl',function($scope){
$scope.name = "Bob";
});
</script>
实现数据双向绑定