& lt; ! doctype html> & lt; html  lang="恩",ng-app=癏elloAngular”比; ,& lt; head> & lt;才能meta charset=皍tf - 8”比; & lt;才能script type=" text/javascript, src=" http://apps.bdimg.com/libs/angular.js/1.4.0-beta.4/angular.min.js "祝辞& lt;/script> & lt;才能script type=" text/javascript, src=" https://www.yisu.com/zixun/module.js "祝辞& lt;/script> & lt;才能title> Document</title> ,& lt;/head> ,& lt; body> & lt;才能div id=" ",类=" ",ng-controller=癶elloAngular”比; & lt; p>‘问候’。‘文本’,Angular & lt;才能/div> ,& lt;/body> & lt;/html>
var myModule =, angular.module (“HelloAngular”, []); myModule.controller (“helloAngular”、“美元范围”, function HelloAngular(范围){ scope.greeting 美元;=,{ 文本:“你好” }; } ]);
<人力资源/>
& lt; ! doctype html> & lt; html  lang="恩",ng-app=癏elloAngular祝辞& lt; !——, ng-app相当于主要的方法,——比; ,& lt; head> & lt;才能meta charset=皍tf - 8”比; & lt;才能script type=" text/javascript, src=" http://apps.bdimg.com/libs/angular.js/1.4.0-beta.4/angular.min.js "祝辞& lt;/script> & lt;才能script type=" text/javascript, src=" https://www.yisu.com/zixun/module.js "祝辞& lt;/script> & lt;才能title> Document</title> ,& lt;/head> ,& lt; body> & lt;才能hello> & lt;/hello> ,& lt;/body> & lt;/html>
var myModule =, angular.module (“HelloAngular”, []); myModule.directive (“hello”,函数(){ 返回{ 限制:,“E”, 模板:,“& lt; div> Hi everyone
& lt; ! doctype html> & lt; html  lang="恩",ng-app> ,& lt; head> & lt;才能meta charset=皍tf - 8”比; & lt;才能script type=" text/javascript, src=" http://apps.bdimg.com/libs/angular.js/1.4.0-beta.4/angular.min.js "祝辞& lt;/script> & lt;才能title> Document</title> ,& lt;/head> ,& lt; body> & lt;才能input ng-model=癵reeting.text”比; & lt;才能p>‘问候’。‘文本’,,AngularJS ,& lt;/body> & lt;/html>