fix(upgrade): leak when angular1 destroys element
Fixes #6401 Closes #7935
This commit is contained in:

committed by
Alex Rickabaugh

parent
74e2bd7e3e
commit
9be04f8d38
@ -160,7 +160,7 @@ export class DowngradeNg2ComponentAdapter {
|
||||
}
|
||||
|
||||
registerCleanup() {
|
||||
this.element.bind('$remove', () => this.viewManager.destroyRootHostView(this.hostViewRef));
|
||||
this.element.bind('$destroy', () => this.viewManager.destroyRootHostView(this.hostViewRef));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user