<ion-tabs #myTabs>
  <ng-container *ngFor = "let tabRoot of tabRoots;let i = index;">
    <ion-tab [tabBadge]="tabRoot.badge"  (ionSelect)="onChange(i)" [rootParams]="tabParams" [root] = "tabRoot.root" tabTitle="{{tabRoot.tabTitle}}" tabIcon="{{ tabsIndex == i ? tabRoot.tabIconOn:tabRoot.tabIconOff }}"></ion-tab>
  </ng-container>
</ion-tabs>


