Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching does not work when segment is put into application title. #5

Open
tavorjeremic opened this issue May 24, 2017 · 0 comments
Open

Comments

@tavorjeremic
Copy link

Hi,
If you put the segment control inside "ion-nav-title" and do "ng-switch" within "ion-content" it does not work.

<ion-nav-title>
  <ion-segment ng-model="categories" full="true"  assertive>
    <ion-segment-button value="movies">
      Movies
    </ion-segment-button>
    <ion-segment-button value="series">
      Series
    </ion-segment-button>
    <ion-segment-button value="animation">
      Animations
    </ion-segment-button>
  </ion-segment>
</ion-nav-title>
<ion-content>
<div ng-switch="categories">
  
   <ion-list ng-switch-when="movies">
      <ion-item>
        Batman Begins
      </ion-item>
        .....
    </ion-list>

    <ion-list ng-switch-when="series">
      <ion-item>
        Game of Thrones
      </ion-item>
        .....
    </ion-list>
    
    <ion-list ng-switch-when="animation">
      <ion-item>
        Ice Age
      </ion-item>
        .....
    </ion-list>
  
  </div>
</ion-content>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant