javascript - Angular-flexSlider start at specific slide using value from the scope not working -


i'm using angular-flexslider , specified start slide using value scope. doesn't work. startat take currentslide value not 5.

$scope.currentslide=5;  <flex-slider slide="slide in slides track $index" start-at="currentslide">             <li>                 <img ng-src="{{slide}}">             </li> 

does 1 know how fix this?

thanks in advance.

`

it looks angular-flexslider expects integer, not expression: https://github.com/thenikso/angular-flexslider

startat: 0, //integer: slide slider should start on. array notation (0 = first slide)

try:

$scope.currentslide = 5;  <flex-slider slide="slide in slides track $index" start-at="{{ currentslide }}">     <li>         <img ng-src="{{slide}}">     </li> </flex-slider> 

Comments

Popular posts from this blog

xslt - Substring before throwing error -

Google Cloud Bigtable Durability/Availability Guarantees -

Android M doze mode and "native" posix socket freezing up -