Sample service for user notifications with AngularJS