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&param2=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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -