Skip to content

Angular2 Service to provide communication between NG1 - NG2 classes

Notifications You must be signed in to change notification settings

Bolza/angular2-bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Angular2 Upgrade Experiments

Example of comunication between NG1 and NG2 using a Bridge Service that implements the Subject class of RxJS

// adds an event listener to be fired whenever `.save` will be called on that `eventKey`
Bridge.on('eventKey', callbackFunction)

// sets a value to the `eventKey` and emits the event
Bridge.save('eventKey', valuePassedToCallback)

// unbinds the listeners on this `eventKey`
Bridge.remove('eventKey') 

About

Angular2 Service to provide communication between NG1 - NG2 classes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published