我有以下页面正在处理(它取自官方的angularjs todo示例页面)
doctype 5
html(ng-app)
head
title myapp
body
div#header-wrapper(ng-controller='PhotosCtrl')
div.col-wrap#header
div.col-2.offset-1: div.fixed-height#logo
div.col-wrap.padded#divisor Welcome
div.col-wrap.center
div.col-19#main
div.item(ng-repeat='photo in photos')
p.desc(ng-model='photo.desc')
script(type='text/javascript', src='http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.1.5/angular.min.js')
script(type='text/javascript', src='/js/app.js')
//app.js
function PhotosCtrl($scope){
$scope.photos = [
{ url:"http://example.comimage.jpg", desc:"this is a picture" },
{ url:"http://example.comimage.jpg", desc:"this is a picture" },
];
};
但我的#main div中没有显示任何内容。知道为什么吗?