guys, I got a question about Routing function of AngularJS, that is, we know all contents will be displayed in ng-view if using Routing, but how could I jump out to a new page, e.g, when clicking "/logout" I want to quit to login.jsp?
Asked
Active
Viewed 68 times
0
-
Thanks guys for your responses, I've got the problem solved. My angularJs is integrated with shiro, and I forgot to set logout page, after setting it, problem solved. – user3496211 Apr 24 '14 at 02:40
2 Answers
0
You should be able to show this page even if you routes in angularjs don't know anything about that but you server part should be aware of this page and redirect properly.

Kath
- 1,834
- 15
- 17
0
If you want a link to leave your app, add target="_self" and Angular will know to leave it alone.
<a href="/logout" target="_self">Logout</a>

JeremyWeir
- 24,118
- 10
- 92
- 107