How do I parse URL params after a hash with Angularjs?

后端 未结 4 1300
挽巷
挽巷 2020-12-29 06:36

I\'m trying to parse for the access_token from Foursquare where the URL is like this:

https://mywebsite.com/4sqredirect/#access_token=1234567890XXXXX

I\'ve t

4条回答
  •  既然无缘
    2020-12-29 06:40

    I'm not aware of a "native angular" way to do it, but you do have access to the hash via location.hash as a string type. it's probably not ideal, but it's workable.

提交回复
热议问题