How to follow a redirect in http.get in AngularJS?

前端 未结 1 743
不思量自难忘°
不思量自难忘° 2020-12-29 14:02

I am working on a website for coaches to help people have healthier lives by using social media. On the moment I am working on access to Twitter through OAuth in a ExpressJS

相关标签:
1条回答
  • 2020-12-29 14:58

    $http goes and gets the contents of the page for you. However, it gives you the results back in the promise. It doesn't change your page at all unless you ask it to. In your then handler, you can do something to redirect your page. There's an example of how you can do that here: Handle an express redirect from Angular POST

    0 讨论(0)
提交回复
热议问题