【发布时间】:2015-11-20 17:47:07
【问题描述】:
我在获取 json 数据时遇到问题,具体取决于在其他 HTML 页面上选择的值,不同的控制器服务于不同的页面
我的主页由循环通过 json 数据的表组成
<table class="table table-striped">
<thead>
<tr>
<th>Firstname</th>
<th>Phone</th>
<th>Time</th>
</tr>
</thead>
<tbody>
<tr ng-repeat = 'row in rows'>
<td><a href="#about/{{row.name}}">{{row.name}}</a></td>
<td>{{ row.phone}}</td>
<td>{{row.time}} </td>
</tr>
</tbody>
</table>
并根据从表中选择的名称,通过$routeParams 将其路由到显示所选人员姓名的不同页面,但我也想从该 json 中获取该人的其他详细信息
http://plnkr.co/edit/iha3M0KThZegme8yKRz9?p=preview
非常感谢任何帮助
【问题讨论】:
标签: javascript angularjs json url-routing