标签:java 应用 css log lis 双向 [] pre func
ng-model可双向绑定、验证表单、应用状态、提供css类
双向绑定:
<div ng-app= "myApp" ng-controller = "myCtrl"> 名字: <input ng-model = "name" /> </div> <script> var app = angular.module(‘myApp‘, []); app.controller(‘myCtrl‘, function($scope){ $scope.name = "allison" }); </script>
标签:java 应用 css log lis 双向 [] pre func
原文地址:http://www.cnblogs.com/zhyc010/p/7091735.html