Skip to content

ngOnDestroy in gp-translate.directive.ts#9

Open
vmukhachev wants to merge 1 commit intoIBM-Cloud:masterfrom
vmukhachev:patch-1
Open

ngOnDestroy in gp-translate.directive.ts#9
vmukhachev wants to merge 1 commit intoIBM-Cloud:masterfrom
vmukhachev:patch-1

Conversation

@vmukhachev
Copy link

@vmukhachev vmukhachev commented Oct 17, 2019

Hello,
Shouldn't you call the this.onLangChangeSub.unsubscribe(); in the directive the same way as in the pipe?

P.S.
Perhaps, it would be even better if it does not create the subscription.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant