1,进入angular-phonecat目录  执行下面命令

git checkout -f step-0

然后访问 http://localhost:8000/app/  页面出现 “Nothing here yet!” 

现在就可以自己创建HTML,编写angular了

app/index.html

<!doctype html>
<html lang="en" ng-app>
<head>
  <meta charset="utf-8">
  <title>My HTML File</title>
  <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css">
  <link rel="stylesheet" href="css/app.css">
  <script src="bower_components/angular/angular.js"></script>
</head>
<body>

  <p>Nothing here {{'yet' + '!'}}</p>

</body>
</html>

ng-app 说明该项目的作用域 这里是 整个html

<script src="bower_components/angular/angular.js"></script>

加载angular

数据绑定{{变量或者字符串}}   这里面的操作跟js对字符串的操作基本上一样

posted on 2015-05-20 11:41  魅影_魍魉  阅读(200)  评论(0编辑  收藏  举报