hii,
It is really simple to redirect from existing to other specified page on clicking on alert.
The sample code to acquire this scenario is:
var app= angular.module( 'app', [ngRoute]);
app.config([ '$routeProvider', function($routeProvider){
$routeProvider.when( '/first-msg' ,{
templateURl :msg.htm,
controller:message1
.when( '/second-msg' ,{
redirectTo: function(){
alert("SORRY!!! You will be redirect to first message");
return:"/first-msg"
})
}]);
Hope this sample piece of code can work for you!!