Shane Shane - 3 months ago 15
AngularJS Question

Passing params in url instead of params object:

I have the below

state
where i am passing
params
as like below:

.state("state", {
url: "/edit/",
params: {'id': null, 'editMode': true},
templateUrl: 'views/info.html',
controller: 'Ctrl'
});


How can i pass in the url.

url: "/edit/?id=''&editMode=true",

ddb ddb
Answer

try this

url: "/edit/?id=&editMode=true",