所有链接都能正常工作,但角度应用程序并未加载到我的电路上。页。角度绑定显示为已定义的{{project.project}}
,依此类推。我没有包括什么?
索引页:
<div class="col-md-1">
<div class="btn-group-vertical btn-block">
<a href="#" class="btn btn-primary" role="button"><span class="glyphicon glyphicon-home pull-left"></span> My Circuits</a>
<a href="#allcircuits" class="btn btn-primary" role="button"><span class="glyphicon glyphicon-list pull-left"></span> All Circuits</a>
<a href="#metrics" class="btn btn-primary" role="button"><span class="glyphicon glyphicon-stats pull-left"></span>Metrics</a>
<a href="#export" class="btn btn-primary" role="button"><span class="glyphicon glyphicon-export pull-left"></span>Export Projects</a>
<a href="#swi" class="btn btn-primary " role="button"><span class="glyphicon glyphicon-book pull-left"></span> SWIs</a>
</div>
</div>
<div class="col-md-11">
<div class = 'ng-view'></div>
</div>
</div>
mycircuits
<div role="toolbar">
<div class="btn-group">
<button type="button" class="btn btn-default" ng-click="projectFilter = ''"><strong>All Projects</strong></button>
<button type="button" class="btn btn-default" ng-repeat="project in projects" ng-click="setFilter(project.PROJECT)"><strong>{{project.PROJECT}}</strong></button>
答案 0 :(得分:0)
你还没有提到ng-app,需要一个序列......你必须首先告诉范围然后你可以使用project.Project,如果它在那里也是如此。
这将使您更好地理解
`http://plnkr.co/edit/?p=preview`