Ion-tab with if condition does not work properly when we switch between tabs?

Hi All,

I am trying to develop an app with multiple tabs, and one tab i am trying to hide if condition not met.
If condition satisfies, i include the tab.

This works fine initially, but if i switch between tabs, page with below tab does not work properly.
Tab shown, but contents of tab are not displayed.

What could be the problem?

 <ion-tab ng-if="(app.title=='XXX')" title="Add text" icon="ion-edit"
           <ion-nav-view name="home-text"></ion-nav-view>