如何在angularjs单页面应用程序中使用后退和下一步按钮 [英] How to use back and next button in a angularjs singlepage application

查看:131
本文介绍了如何在angularjs单页面应用程序中使用后退和下一步按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆