Redirect using AngularJS

后端 未结 6 1331
情书的邮戳
情书的邮戳 2020-11-30 02:28

I\'m trying to redirect to another route using:

$location.path(\"/route\");

But for some reason it is not working. I did an auto-complete w

6条回答
  •  独厮守ぢ
    2020-11-30 02:40

    If you need to redirect out of your angular application use $window.location. That was my case; hopefully someone will find it useful.

提交回复
热议问题