Shane Shane - 1 year ago 138
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",
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download