角js不渲染

时间:2014-05-23 16:15:23

标签: javascript angularjs

我正在关注角度js教程(this one to be precise)。我尝试在头部和身体中添加脚本,它只是显示:1 + 2 = {{1 + 2}} {{phone.name}}和{{phone.snippet}}原样...有什么我可能会失踪?

<!doctype html>
   <html lang="en" ng-app="phonecatApp">
   <head>
   <meta charset="utf-8">
   <title>My HTML File</title>
   <link rel="stylesheet" href="../resource/css/bootstrap.css">
   <script src="../resource/js/angular.min.js"></script>
   <script src="../resource/js/controllers.js"></script>
   </head>
   <body ng-controller="PhoneListCtrl">
    <p>1 + 2 = {{ 1 + 2 }}</p>
    <ul>
        <li ng-repeat="phone in phones">{{phone.name}}
            <p>{{phone.snippet}}</p>
        </li>
    </ul>
   </body>
   </html>

0 个答案:

没有答案