mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 17:42:15 +08:00

committed by
Manu MA

parent
d1cecf142b
commit
2c41823676
@ -76,6 +76,7 @@ export function destroyView(view: RouteView | undefined) {
|
||||
if (view) {
|
||||
// TODO lifecycle event
|
||||
view.ref.destroy();
|
||||
view.unlistenEvents();
|
||||
}
|
||||
}
|
||||
|
||||
@ -86,4 +87,5 @@ export interface RouteView {
|
||||
element: HTMLElement;
|
||||
ref: ComponentRef<any>;
|
||||
savedData?: any;
|
||||
unlistenEvents: () => void;
|
||||
}
|
||||
|
Reference in New Issue
Block a user