J
J
JustAleksei2016-05-05 19:57:43
Angular
JustAleksei, 2016-05-05 19:57:43

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

1 answer(s)
D
Dmitry Arushanov, 2016-05-13
@JustAleksei

...
app.config(['$locationProvider', function ($locationProvider) {
  ...
    $locationProvider.hashPrefix("!");
  ...
}]);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question