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

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -