<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible"content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title></title>
<meta charset="utf-8" />
<link rel="stylesheet" href="bootstrap-3.3.5/dist/css/bootstrap.min.css" />
</head>
<body>
<div class="container">
<div data-ng-app=""><!--data-ng-app指令定义了一个AngularJS应用程序。-->
<p>在输入框中输入试一下:</p>
<input type="text" size="30" maxlength="26" data-ng-model="name" /><!--data-ng-model指令把元素的数值(输入框的值)绑定到AngularJS应用程序。-->
<p class="featurette-heading" data-ng-bind="name"></p><!--data-ng-bind指令把应用程序数据绑定到P元素-->
</div>
</div>
<script src="jQuery/jquery-2.1.4.js"></script>
<script src="bootstrap-3.3.5/dist/js/bootstrap.min.js"></script>
<script src="http://apps.bdimg.com/libs/angular.js/1.4.6/angular.min.js"></script>
</body>
</html>
原文:http://www.cnblogs.com/melao2006/p/5041940.html