Ionic customizing TEB switching

Source: Internet
Author: User

                HTML code        <div  class= "Row" >          <div class= "tabs  gem-position-static profile-tabs" ng-repeat= "Item in Initslidetabs.data" >             <a   class= "Tab-item"  href= "#" ng-click= "Activeslide ($index)" ng-bind= "Item.name" >            </a>          </div>        </div>        <ion-slide-box On-slide-changed= "slidechanged (Index)" active-slide= "SlideIndex"  does-continue= "{{ Initslidetabs.doescontinue}} "show-pager=" {{Initslidetabs.showpager}} ">            <ion-slide ng-repeat=" item in Initslidetabs.data ">                <div ng-include=" item.tpl "class=" padding "></div>            </ion-slide >        </ion-slide-box>    
/* Personal homepage */controller.js. Controller (' Personhomectrl ', function ($scope, $ionicSlideBoxDelegate) {//Initialize Slidetabs number According to $scope. Initslidetabs = {data:[{name: "Home", TPL: ' templates/person/person-home-page.html ' }, {name: ' Course ', TPL: ' templates/person/person-course.html '}, {name: ' article ', TPL: ' templates/person/a D.html '}, {name: ' Job ', TPL: ' templates/person/ad.html '}],//tab content doescontinue:false,//        Whether the loop toggles whether showpager:false//shows the time interval of the small black Point//slideinterval:4000//auto-switch};        The first $scope is selected by default. SlideIndex = 0;        Slide the slider below to respond to the above tabs switch $scope. slidechanged = function (index) {$scope. SlideIndex = index;        };        Click on the tabs toggle above to slide $scope in response to the slider below. Activeslide = function (index) {$ionicSlideBoxDelegate. Slide (index);    }; })


Source:

http://download.csdn.net/detail/qinguicheng/9512076


Ionic customizing TEB switching

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.