AngularJS: How to clear query parameters in the URL?

后端 未结 16 2666
余生分开走
余生分开走 2020-12-04 14:40

My AngularJS application needs to have access to the user\'s LinkedIn profile. In order to do that I need to redirect the user to a LinkedIn URL which contains a callback re

16条回答
  •  难免孤独
    2020-12-04 15:45

    if you process the parameters immediately and then move to the next page, you can put a question mark on the end of the new location.

    for example, if you would have done $location.path('/nextPage');

    you can do this instead: $location.path('/nextPage?');

提交回复
热议问题