First create a simple button which contains an ng-click Event:
<input id="btnTest" type="button" value="Show Alert" ng-click="ShowAlert()" />
var app = angular.module('MyApp', []);
app.controller('MyController', function ($scope, $window) {
$scope.ShowAlert = function () {
$window.alert("Hello World");
}
});
From this method it will display the alert box.
Thank you,