如何在angularjs单页面应用程序中使用后退和下一步按钮 [英] How to use back and next button in a angularjs singlepage application
问题描述
如何在angularjs单页应用程序中使用后退和下一个按钮
i在查看页面中使用此内容
how to use back and next button in a angularjs singlepage application
i have used this in view page
<a ng-href="@Url.Content("~/main/category/")">Back</a>
我的尝试:
当我使用此链接时它会隐藏页面内容
What I have tried:
when i use this link it hides the page contents
推荐答案
试试这个
try this
<a ng-href="@Url.Action(" category=", " main=")">Back</a>
但是不需要 angular
js这个直接链接。对于这种情况,你可以简单地使用 href
属性
作为
but there is not need for angular
js for this direct link. for this case you can simply use href
attribute
as
<a href="@Url.Action(" category=", " main=")">Back</a>
请参阅此内容以了解 Url.Action
和 Url.Content
MVC @ Url.Content vs @ Url.Action [ ^ ]
参考此何时使用ng-href和href [ ^ ]
有关 ng-href的文档 [ ^ ]
refer this to understand the difference between Url.Action
and Url.Content
MVC @Url.Content vs @Url.Action[^]
refer this when to use ng-href and href [^]
documentation on ng-href[^]
这篇关于如何在angularjs单页面应用程序中使用后退和下一步按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!