fix(angular): ion-nav no routing

This commit is contained in:
Manu Mtz.-Almeida
2018-03-20 18:52:12 +01:00
parent f39d3ad9dd
commit 9094c66f3d
13 changed files with 318 additions and 58 deletions

View File

@ -53,9 +53,9 @@ export class AngularFrameworkDelegate implements FrameworkDelegate {
}
removeViewFromDom(_container: any, component: any): Promise<void> {
const mountingData = this.elRefMap.get(component);
if (mountingData) {
mountingData.componentRef.destroy();
const componentRef = this.elRefMap.get(component);
if (componentRef) {
componentRef.destroy();
this.elRefMap.delete(component);
}
return Promise.resolve();