On one page, I upload content via ajax according to user selections (filters), to ensure that the downloaded content remains in place, if the user reloads or gets to the page, I put the selected filters in the url query string. Since I load the content via ajax on this particular page, I don’t need to reload the whole page every time the user selects a new filter, so I forbid the browser to respond to url changes with the following configuration:
app.config(['$locationProvider', function($locationProvider) {
$locationProvider.html5Mode(true);
}]);
However, this affects the entire application and prevents all other pages from reloading when URLs change, a behavior I don't want. How can I make this configuration affect only one specific controller in my application?
source
share