angularjs - angular js flexslider with one row of thumbnails -


i using flexslider angularjs, examples form website jquery not helpful. have implemented slider: html

<div>      <flex-slider flex-slide="image in product.imagepaths track $index" animation="slide" control-nav="thumbnails">         <li data-thumb="{{imagesurl}}{{image.thumbnail}}">             <img ng-src="{{imagesurl}}{{image.custom}}">         </li>      </flex-slider> </div> 

in js array of objects consist of 3 strings each(paths original, custom size , thumb)

and have overwritten css size:

  .flexslider {           width: 400px;           height: 400px;    }          .flexslider .slides img {             width: 400px;             height: 400px;         }    .flex-direction-nav  {       line-height: 40px;     } 

i have 12 thumbnails, clicking them works fine, supposed do; problem visible, shown on 3 rows. have added requested classes:

<link rel="stylesheet" href="/content/flexslider/flexslider.css" /> 

and scripts:

<script src="/scripts/jquery-2.1.3.js"></script> <script src="/scripts/jquery.flexslider.js"></script> <script src="/scripts/jquery-ui-1.11.4.js"></script> <script src="/scripts/modernizr-2.8.3.js"></script> <script src="/scripts/angular.js"></script> <script src="/scripts/angular-flexslider.js"></script> 

don't know else do, , find documentation (examples) angular poor. can please help? spent day on it...

edit plunker demo: http://plnkr.co/edit/gwtik8q3qxhqjlyjhord

second edit ok, have found plunker working carousel thumbnails, builds 2 flex sliders. way? when in example on git (https://github.com/thenikso/angular-flexslider/blob/master/examples/thumbnail-controlnav.html) use version? plunker: http://plnkr.co/edit/k4vbosqcafbr1fps0jjr

see plunker created. modification of plunker attached. per implementation, jquery or not, need split images , thumbnail. http://plnkr.co/edit/ktsqujfi5omosw6cu06x?p=preview

<div id="container" ng-controller="mainctrl">      <div class="col-sm-12">        <flex-slider slider-id="slider" flex-slide="image in prod.imagepaths track $index" animation="fade" animation-loop="false" sync="#carousel" slideshow="false" control-nav="false" init-delay="100">         <li>           <img ng-src="{{image.custom}}">         </li>       </flex-slider>     </div>     <div class="col-sm-12">       <flex-slider slider-id="carousel" flex-slide="image in prod.imagepaths track $index" animation="slide" animation-loop="false" item-width="210" item-margin="5" as-nav-for="#slider" slideshow="false" control-nav="false">         <li>           <img ng-src="{{image.thumbnail}}">         </li>       </flex-slider>     </div>   </div> 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -