1
스 와이프 가능한 메뉴에 아이콘을 추가하는 데 문제가 있습니다. 표시되는 것은 {object object}입니다. typescript를 통해 아이콘을 추가하려면 어떻게해야합니까?이오니아 아이콘을 추가하여 사용 가능한 톱 메뉴를 스 와이프합니다.
home.html을
<ion-segment class="SwipedTabs-tabs" >
<ion-segment-button *ngFor='let tab of tabs ; let i = index ' value="IngoreMe" (click)="selectTab(i)"
[ngClass]='{ "SwipedTabs-activeTab" : (this.SwipedTabsSlider && (this.SwipedTabsSlider.getActiveIndex() === i || ( tabs.length -1 === i&& this.SwipedTabsSlider.isEnd()))) }' >
{{tab}}
</ion-segment-button>
</ion-segment>
home.ts는
constructor(public navCtrl: NavController) {
this.tabs=[{'name':'people' },"page2"];
}