Javascript 用户界面路由器刷新在点击6次后崩溃
当执行以下步骤时,我的应用程序似乎中断Javascript 用户界面路由器刷新在点击6次后崩溃,javascript,angularjs,express,angular-ui-router,Javascript,Angularjs,Express,Angular Ui Router,当执行以下步骤时,我的应用程序似乎中断 “我的代码”允许您单击用户,为其分配角色,然后刷新页面 单独的GET请求获取类中当前所有用户的列表 在点击了6个不同的人之后,我的整个网站停止工作,它不会让我进入另一个状态。当前页面上的所有信息也将消失 如果有更好的方法进行刷新,我愿意接受建议。我最终找到了答案。这不是一个用户界面的东西,只是以角度发送http post请求,但没有返回任何内容 我终于明白了。这不是一个用户界面的东西,只是以角度发送http post请求,但没有返回任何内容 控制台中有错误
如果有更好的方法进行刷新,我愿意接受建议。我最终找到了答案。这不是一个用户界面的东西,只是以角度发送http post请求,但没有返回任何内容 我终于明白了。这不是一个用户界面的东西,只是以角度发送http post请求,但没有返回任何内容 控制台中有错误吗?没有,控制台中没有错误。你可以创建一个plunker或其他我们可以运行并看到错误的东西吗?我最终找到了答案。这不是一个用户界面的东西,只是以角度发送http post请求,但没有返回任何内容。必须是安全问题。请添加您的评论作为答复,然后在2天内接受。谢谢控制台中有错误吗?没有,控制台中没有错误。你能创建一个plunker或其他我们可以运行并看到错误的东西吗?我最终找到了答案。这不是一个用户界面的东西,只是以角度发送http post请求,但没有返回任何内容。必须是安全问题。请添加您的评论作为答复,然后在2天内接受。谢谢
<div ng-controller="class" data-ng-init="getAllUsers()">
<div class="col-md-6">
this is where all the users go
<table ng-table="zz">
<tr ng-repeat="user in $data |filter: { _class: '!' + classEdit }">
<td>
<div class="radio">
<label><input type="radio" name="userN" ng-click="userId(user._id)">{{user.firstname}} {{user.lastname}} </label>
</td>
</tr>
</table>
</div>
<div class="col-md-6">
<p>what type of account? </p>
<div class="radio">
<label><input type="radio" name="userRole" ng-model="userRole" value="teacher">Teacher</label>
</div>
<div class="radio">
<label><input type="radio" name="userRole" ng-model="userRole" value="ta">ta</label>
</div>
<div class="radio">
<label><input type="radio" name="userRole" ng-model="userRole" value="student">Student</label>
</div>
<button type="submit" ng-click="updateClass()" class="btn btn-info">Add To Class</a>
</div>