In Ionic Ion-segment-button

In first view,the segment Value(Thismonth) shows empty space.if we click that empty space its shows the segment value as (Thisyear).

For example
Today,This Month,This year

Screenshot


Getting error like this…

code

 <div padding>
      <ion-segment [(ngModel)]="attendance" (ionChange)="updatePage(attendance)">
        <ion-segment-button value="Today">
          Today
        </ion-segment-button>
        <ion-segment-button value="Thismonth">
          This Month
        </ion-segment-button>
        <ion-segment-button value="Thisyear">
          This Year
        </ion-segment-button>
      </ion-segment>
    </div>

Don’t use both ionChange and ngModel. Follow the code example in the official docs.

error cleared thank u…

I have same issue. I try using this documentation.I need to trace the ion-segment change value.