saravmajestic / ionic

Custom Ionic components
352 stars 204 forks source link

Feature: Adding urls to each tab #11

Open do-web opened 9 years ago

do-web commented 9 years ago

For use it like the normal ion-tabs

saravmajestic commented 9 years ago

I tried with sref and href but could not achieve slide effect. I will try it soon. If you have solved it also, please let me know.

widget- commented 9 years ago

If this is what you're talking about, I can sorta get views working with this:

<tab-slide-box tabs-position="top">
   <ion-slide-box show-pager="false" on-slide-changed="slideHasChanged($index)">
      <ion-slide>
         <div ng-include="'templates/login-login.html'" ng-controller="LoginCtrl"></div>
      </ion-slide>
      <ion-slide>
         <div ng-include="'templates/login-register.html'" ng-controller="RegisterCtrl"></div>
      </ion-slide>
   </ion-slide-box>
   <div class="tsb-icons">
      <div class="tsb-ic-wrp">
         <ion-scroll direction="x" class="tsb-hscroll"><a>Login</a><a>Register</a>
         </ion-scroll>
      </div>
   </div>
</tab-slide-box>