After setRoot(TabsPage), the default tab page appears twice

I think I found a fix!

I was trying to solve another problem after upgrading to RC4…

Then I realized the rendering issue happened only on all the tabs at the first level.
So I tried using NgZone to run setRoot(TabsPage)
And some how it solves both the problems…

FYI:

import { NgZone } from '@angular/core';

constructor(private zone: NgZone) { ... }

Where you call setRoot:

this.zone.run(() => {
    this.navCtrl.setRoot(TabsPage);
});
14 Likes