1、在APACHE的WWW目录下,编写一个INDEX HTML
2、拷贝angular.min.js到同一目录
3、编写代码
<input type="text" name="name" ng-model="name"/>
Hello {{name}}! How are you doing today?
</body>
<script>
var helloApp = angular.module("helloApp", []);
helloApp.controller("HelloCtrl", function($scope) {
$scope.name = "Calvin Hobbes";
});
</script>
“`
在浏览器里访问index.html,即可。
参考:http://www.oschina.net/translate/angularjs-hello-world-code-example