简体   繁体   English

AngularJS无法加载我的其中一页

[英]AngularJS not Loading in for one of my pages

All links work correctly but the angular app isnt loading on the "my circuits" page. 所有链接均正常运行,但是在“我的电路”页面上没有加载角度应用程序。 The angular bindings are showing up as defined {{project.project}} and so on. 角度绑定显示为已定义的{{project.project}} ,依此类推。 What did i not include? 我不包括什么?

index page: 索引页:

<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 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>

You have not mentioned ng-app , there is a sequence required... you have to tell the scope first then you can use project.Project , that too if its there in it. 您没有提到ng-app,这需要一个序列...您必须先告诉作用域,然后才能使用project.Project,如果它在其中。

this will give ua better understanding 这将使您更好地了解

 `http://plnkr.co/edit/?p=preview`

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM