<html ng-app>
<head>
<script src="angular-1.0.1.min.js"></script>
</head>
<body>
hello{{yourname||'world'}}<br/>
your name:<input type="text" ng-model="yourname" placeholder="xiaoji">
</body>
</html>
上例代码是ng-model:绑定一个模板类型yourname,在文本框中输入数据就能马上显示出来,不需要绑定事件