Skip to content

Modernized build, add flux.listenTo

Latest
Compare
Choose a tag to compare
@jrust jrust released this 30 Apr 20:32
· 1 commit to master since this release

The listenTo callback is now accessible off the flux object for use outside the angular lifecycle (e.g. React). It returns an unsubscribe callback that can be invoked upon cleanup of the component.

Updated the package to use rollup so it is compatible as an ES6 import, UMD module, or common module. Only breaks backward compatibility with 3.x if code was explicitly referencing release/flux-angular.js instead of importing the normal way.