javascript - Does Angular $location service support multiple parameters? -
using angular's $location.search()
method, possible create url parameter, this:
http://mysite.com/page?param=myparam
is possible create multiple url parameters, this?
http://mysite.com/page?param=myparam¶m2=myparam2&...
i've tried adding multiple object parameters function call (ex. $location.search({ key1: value, key2: value })
), i'm receiving 1 key/value in url.
thanks!
it work in fiddle: http://jsfiddle.net/phnlb/42/
$scope.changetarget = function(name) { $location.search({target : 'hi', new : 'else'}); }
(angular 1.1.4, html5 mode = true)
which version of angular using?
Comments
Post a Comment