JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app="myapp">
<a href="#tab1" ng-click="tabClick($event)">tab1</a>
<a href="#tab2" ng-click="tabClick($event)">tab2</a>
<a href="#other">other</a>
</div>
JavaScript
angular.module('myapp', []).run(function ($rootScope) {
$rootScope.tabClick = function ($event) {
alert('prevented');
};
});