ng-model,ng-controller,ng-bind的用法

简单通俗易懂的演示:


<body>
<div ng-controller="controller">
<input type="text" ng-model="name" >
<input type="text" ng-model="name">
{{name}}
<div ng-bind="name"></div>
</div>
<script>
alert(3);
</script>
</body>

你可能感兴趣的:(ng-model,ng-controller,ng-bind的用法)