1 <!DOCTYPE HTML> 2 <html> 3 <body> 4 <div ng-app=""> 5 <p>Name:<input type="text" ng-model="name" value="john"></p> 6 <p ng-bind="name"></p> 7 </div> 8 <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js"></script> 9 </body> 10 </html>
结果图: