Before I am using JQuery and I use this to send URL with parameter
window.location = myUrl + $.param({\"paramName\" : \"ok\",\"anotherParam\":\"hello\"}); >
you can inject and use this function instead: $httpParamSerializerJQLike()