Move alert trigger to special AngularJS service