-
-
Save lasfrancisco/137f949ad71416e20652ef40a8e34366 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
constructor(private observer: ActionLinkObserver) { | |
// Registers to react upon 'popup' link activation | |
this.sub = observer.register('popup').subscribe( params => { | |
// Do something... | |
this.doSomethingAboutIt(params); | |
}); | |
} | |
/** Disposes of the subscriptions */ | |
ngOnDestroy() { | |
this.sub.unsubscribe(); | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment