When both, href and ng-click attributes are defined:
<a href="#" ng-click="logout()">Sign out</a>
the href
attribute takes precedence over ng-click.
I am looking for a way to raise priority of ng-click.
href
is required for Twitter Bootstrap, I can't remove it.
Please check this
You can simply prevent the default behavior of the click event directly in your template.
Per the angular documentation,
Just write ng-click before href ..It worked for me
You can also try this:
Here is another solution :
i.e. Just remove the # from the href attribute
I don't think you need to remove "#" from href. Following works with Angularjs 1.2.10