At the moment this is the code the 'other' controllers have in them:
'$scope.$root.$broadcast('alert/new', {msg:'journalist.alert.created',
type:'success'});'
So are you suggesting the message sending code would go in the service ?
That would make sense since it feels dirty having the message type string
everywhere. The only advantage of not using a service, is that I don't
have to inject yet another thing everywhere :)
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.