Answer the question
In order to leave comments, you need to log in
How to change the URL without reloading the page?
Hey!
Or even how to organize a search, with 10+ parameters, so that the url is saved.
.when('/search',
{
templateUrl: html,
controller: 'SearchCtrl'
})
There is a form with different controls whose events the model is updated with.
I can’t figure out how to push a parameter there, delete change. How to organize?
Answer the question
In order to leave comments, you need to log in
Hmm... Do you want the filter to be displayed in the url, but the page does not refresh?
You can do it like this:
.when('/search?param1¶m2&.....¶mN',
{
templateUrl: html,
reloadOnSearch: false
controller: 'SearchCtrl'
})
$location.serach(
{
param1: 1,
param2: 2
}
);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question