Angular2 get url query parameters
问题 I'm setting up a Facebook registration for my Angular2 web app. Once the application accepted via Facebook (after being redirected to the Facebook authorization page), it redirect to my webapp with the token and code as url params: http://localhost:55976/?#access_token=MY_ACCESS_TOKEN&code=MY_CODE But once the page is loaded, the params are removed. The url become: http://localhost:55976/ How can I extract the parameters (access_token and code) before they are removed? My routing