Answer the question
In order to leave comments, you need to log in
Where can I fix the config so that instead of "#" in nested links, "#!" is used?
Hello! I don’t understand anything about this tool, but such a task arose. IF it is trivial and a matter of several operations, then please tell me in which file and in which place this behavior can be corrected.
Now the links look like this (when following nested links):
/lists/210#/items/849
And you need this:
/lists/210#!/items/849
Found in the documentation https://docs.angularjs.org/api/ ng/provider/$locati... (hashPrefix([prefix]);) as I understand it, this is it. But I don't understand where to put it.
Answer the question
In order to leave comments, you need to log in
...
app.config(['$locationProvider', function ($locationProvider) {
...
$locationProvider.hashPrefix("!");
...
}]);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question