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.
You should probably just use a button tag if you don't need a uri.
This worked for me in IE 9 and AngularJS v1.0.7:
Thanks to duckeggs' comment for the working solution!
I'll add for you an example that work for me and you can change it as you want.
I add the bellow code inside my controller.
and for my view page I add the bellow code.