Build query string from parameters object

前端 未结 4 1193
不知归路
不知归路 2020-12-05 03:54

How to build a url with query parameters in Angularjs.

I see the API $location.search()

the problem is $location(url) is to redirect to the url. In my case,

4条回答
  •  情深已故
    2020-12-05 04:09

    angular's internal and external URL formatting rules are slightly different.

    The $location is a means of activating internal routes within your own application.

    If it is an external link then $http is what you want.

    If it is an internal link, then check it might be worth checking the hash/bang syntax.

提交回复
热议问题