Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于在spa中angula-ui-router的路由问题 #38

Open
kylezhang opened this issue Nov 18, 2015 · 0 comments
Open

关于在spa中angula-ui-router的路由问题 #38

kylezhang opened this issue Nov 18, 2015 · 0 comments

Comments

@kylezhang
Copy link

在SPA中使用angula-ui-router的路由问题:
1)业务描述:
打算把微信服务号的部分页面用SPA模式重构下;
2)目前问题:
A:因为只是要把部分页面重构为SPA,所以就涉及到这个SPA的root或者说base href(应该是锚点)怎么定?
B:其实重构的主要是把原来的a标签中的链接,换成ui-sref的形式;原来我的a标签是一个从后台传过来的具体的URL(http://rostname/wx/consultant/home/p/QzkwODVGWWlTRms9/oeOGnuEEc4g5bj2wMaSRJxjx9b_k/939b888800bf4797ba5583dd7aba2463bffcd4c8/0/),
那么现在我该怎么设置这个ui-sref?
怎么设置$stateProvider.state中的各个值;url,templateUrl等。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant