In my app i have to redirect to an external url using window.location.href, this is in order to let the user authenticate in google adwords as shown in the picture below
Once the user authorize the app it will be redirected to a callback url that i have defined in google console developer. The callback url contains a code that google give in response like shown below : i have to get that code in my angular2 code and i wonder how.