Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Can you please tell me how we slide div when user click tab .I make demo in jQuery Mobile (fiddle http://jsfiddle.net/ezanker/o9foej5L/1/ ) in which I have three tab and using the tab it show transition can you please tell me how we can do same in angular ? I am trying to achieve this but I am not able to do that how I ail achieve this in angular?

Plunker http://plnkr.co/edit/ornYCV15uV8lPNL1ujPL?p=preview

 $(function(){
        $("#owl-demo").owlCarousel({
            navigation : false, // Show next and prev buttons
            pagination : false, //hide pagination dots
            slideSpeed : 300,
            paginationSpeed : 400,
            singleItem:true,
            afterMove: function(){
                var owl = $("#owl-demo").data('owlCarousel');
                $(".tabBtn").removeClass("ui-btn-active").eq(owl.currentItem).addClass("ui-btn-active");
            }
        });
    })
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
171 views
Welcome To Ask or Share your Answers For Others

1 Answer

After a long RND .I am able to solve that problem own .I make a directive like that than using that directive I animate the div Here is demo http://plnkr.co/edit/M08sP4oEZLWr6HgGKAde?p=preview

app.directive('owlCarousel', function() {
  return {
    restrict: 'A',
    scope: {
      owlOption: '='
    },
    link: function(scope, element, attrs) {
      $(element).owlCarousel(scope.owlOption);
    }
  };
});

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...