Shane Shane - 11 months ago 92
AngularJS Question

Passing params in url instead of params object:

I have the below

where i am passing
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 Source

try this

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