Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. this.routeParam.queryParams
  2. .subscribe(params => {
  3. let code = params['id_token'];
  4. console.log('code val >> ', code);
  5. })
  6.  
  7. getURLVars(key) {
  8. var vars = [], hash;
  9. var hashes = window.location.href.slice(window.location.href.indexOf('#') + 1).split('&');
  10. for (var i = 0; i < hashes.length; i++) {
  11. hash = hashes[i].split('=');
  12. vars.push(hash[0]);
  13. vars[hash[0]] = hash[1];
  14. }
  15. return vars[key];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement