christianalfoni / flux-angular

Use the FLUX architecture with Angular JS
313 stars 50 forks source link

Add `flux.listenTo` #74

Closed CodyRay closed 5 years ago

CodyRay commented 5 years ago

This PR adds a listenTo method to the flux service. The semantics are the same as $scope.$listenTo but the caller of flux.listenTo can unsubscribe the listener with the returned callback.

jrust commented 5 years ago

Looks good - think its worth updating the README to point out this new functionality?

CodyRay commented 5 years ago

@jrust Makes sense, added a paragraph to the README 👍