typescript
  • ionic-framework
  • 2017-12-30 44 views 1 likes 
    1

    스 와이프 가능한 메뉴에 아이콘을 추가하는 데 문제가 있습니다. 표시되는 것은 {object object}입니다. typescript를 통해 아이콘을 추가하려면 어떻게해야합니까?이오니아 아이콘을 추가하여 사용 가능한 톱 메뉴를 스 와이프합니다.

    enter image description here

    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"]; 
    } 
    

    답변

    1

    사용 슈퍼 탭 모듈의 신속하고 작업을 진행하고 쉽게 그 당신이 정확히 무엇을 찾고.

     관련 문제

    • 관련 문제 없음^_^