0

我正在处理以下页面(取自官方的 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 中没有显示任何内容。知道为什么吗?

4

0 回答 0