doushan7077 2015-06-30 03:35
浏览 53

AngularJS没有加载我的一个页面

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

<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>
  • 写回答

1条回答 默认 最新

  • douyueju2912 2015-06-30 04:26
    关注

    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.

    this will give u a better understanding

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

报告相同问题?

悬赏问题

  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算