Skip to content

Commit

Permalink
test(nav): fix nav
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Mar 21, 2018
1 parent 72fab36 commit 98b8253
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/components/nav/view-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ export class ViewController {
async init(container: HTMLElement) {
this._state = ViewState.Attached;

const component = this.component;
this.element = await attachComponent(this.delegate, container, component, ['ion-page', 'hide-page'], this.data);
if (!this.element) {
const component = this.component;
this.element = await attachComponent(this.delegate, container, component, ['ion-page', 'hide-page'], this.data);
}
}

_setNav(navCtrl: NavControllerBase) {
Expand Down

0 comments on commit 98b8253

Please sign in to comment.