$location.url('?filterBy='+web.websiteId);
In this code add params after my url but it also add # before ?filterBy=
Like
www.asasa.com/asas#?filterBy=1
but i need like this
www.asasa.com/asas?filterBy=1
I am using angularjs 1.2.17
$location.url('?filterBy='+web.websiteId);
In this code add params after my url but it also add # before ?filterBy=
Like
www.asasa.com/asas#?filterBy=1
but i need like this
www.asasa.com/asas?filterBy=1
I am using angularjs 1.2.17
I think you require some data on other state/controller. First of all this is a traditional method. The more proper way would be to RESTful approach when setting up the routes, like
.when('/asas', ...)
.when('/asas/:filterBy', ...)
and when changing the location you can do
$location.path( "/asas" );
$location.path( "/asas/1" );