Shane Shane -4 years ago 184
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",

Answer Source

try this

url: "/edit/?id=&editMode=true",
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download