Using $routeProvider to redirect to routes outside of Angular

后端 未结 5 716
难免孤独
难免孤独 2020-12-05 04:34

I\'ve written part of a web application in Angular. To ensure that all routes are covered, I wanted to add a redirectTo property to the $routeProvider

5条回答
  •  旧时难觅i
    2020-12-05 04:50

    Hi even though it's been two years, just for some one who search for this answer, simply use window.location.assign('/login'). It's work for me.

提交回复
热议问题