A collection of 6 of the best Angular JS Tips and Tricks
Tips #1 : Link - href
If you want to use AngularJS markup inside your links, you have to use ng-href instead of href. The reason is that it takes time for AngularJS to parse all HTML, and this means that if the user is quick he/she can click the link before it is actually parsed. This would result in a 404-page.
So, instead of writing this:
<a href="http://www.someurl.com/{{hash}}"/>
you should write this:
<a ng-href="http://www.someurl.com/{{hash}}"/>
Tips...
Powered by Blogger.