Change your Button tag,
<button type="button" class="button button-large button-energized" ng-click="test()">click me!!!</button>
or
<button type="button" class="button button-large button-energized" ng-click="test($event)">click me!!!</button>
and on your controller:
$scope.test = function($event){$event.preventDefault();alert(1);
Hope this helps.
Bhuneshwer
source share