Event emitters for AngularJS