0

I have a AngularJS App. When I have for example following URL:

foo.bar/app/#/en

and the user change it in the browser to (without reloading the page):

foo.bar/app/#/de

Some random controllers and $watch-functions are running again, causing some problems.

Is there a way to tell AngularJS not to do anything there? I dont want any functions/controller/whatever to run, if the hash parameter is changed

Thank you very much.

1 Answer 1

0

Found the solution: https://stackoverflow.com/a/14329570/1678067

Works 100% perfect. Still not sure, what is exaclty happening, when I change something in the Hash param (in the URL).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.