Reputation: 1461
I see this syntax of links in AngularJS applications:
<a href="/#/something">something</a>
Why is there the '/#/' in the link, and what does it achieve? I think I might have also seen a version with a bang in it, something like
<a href="/!#/login">
or
<a href="/#!/login">
What is the purpose of the !
?
Thank you!
Upvotes: 0
Views: 72
Reputation: 343
The hashtag is in the link for non-HTML5 browsers to prevent the browser from making the actual href call. It's actually not needed for most browsers these days.
Upvotes: 1