这是我的玉码:
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)