我在mvc中有表格,例如我的路线是:www.example.com/personalInfo但是当我点击提交按钮时,它会将我重定向到www.example.com/app/personalInformation ...所以我的问题是如何才能我在angularjs中使用mvc验证,是否可能。我正在使用ui.router进行路由....这就是我在mvc中使用我的表单的方式:
@using (Html.BeginForm("PersonalInformation", "Account", FormMethod.Post, new { id = "editUserForm", @class = "form" }))
{
}
<input id="submit" type="submit" class="btn-block secondary-button save-changes" onclick="SavePersonalInformation()" value="@Translator.Translate("SAVE_CHANGES")">