Angularjs 角度js编辑页面视图

Angularjs 角度js编辑页面视图,angularjs,Angularjs,我用的是angularjs 1这是我的回答 <table class="table myCustomTable"> <thead> <tr> <th>Name</th> <th>email</th> </tr> </thead> <tbody> <tr ng-repeat="user in data | filter: searchKeyw

我用的是angularjs 1这是我的回答

<table class="table myCustomTable">
<thead>
  <tr>
    <th>Name</th>
    <th>email</th>
  </tr>
</thead>
<tbody>
    <tr ng-repeat="user in data | filter: searchKeyword">
    <td><a href="#/user/{{user.id}}">{{user.name}}</a></td>
    <td>{{user.emaik}}</td>
  </tr>

</tbody>
</table>
响应提交很好,但我不知道如何创建和重定向到编辑页面视图

我还想在编辑页面视图中获取所有详细信息


我不知道如何在AngularJS中使用您可以从一个页面遍历到另一个页面的路由来修复这个问题。通过路由提供程序-$Route或状态提供程序-$State实现此功能的最简单方法。
通过使用$routeParams或$stateParams,您可以将参数从一个页面传递到另一个页面。

有关模板的使用方法,您可以使用ui boostrap模式或任何其他弹出窗口打开模板。要更改视图,请尝试