我想用角度模块运行玉

时间:2014-12-27 14:42:38

标签: angularjs express pug

这是我的玉码:

doctype html
html
    head
        script(src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.25/angular.min.js")
        script(src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.25/angular-route.min.js")
        script(href="../public/javascripts/app.js")
        link(href="../public/stylesheets/sample.css")       
        title my jade template
    body(ng-app='infonioninfo')
        h1 data loaded from json test
        #ngapp(ng-controller="PostsCtrlAjax1")
            h2 {{posts}}

这是我的角度代码:

var infonionapp=angular.module('infonioninfo',['ngRoute','ngResource']);

我在浏览器上出错了

angular.js:36 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.2.25/$injector/modulerr?p0=infonioninfo&p1=Er…gleapis.com%2Fajax%2Flibs%2Fangularjs%2F1.2.25%2Fangular.min.js%3A18%3A387)

0 个答案:

没有答案