I need to go through the elements of a dropdownlist that I have previously filled with a service, that stays in one element for 30 seconds and then moves on to the next one.
My HTML:
<select ng-model="depSel" ng-change="changedValue(depSel)" class="form-control pull-right animated fadeInRight" style="width: 260px;font-size:17px;">
<option value="">--- Seleccione Dependencia ---</option>
<option ng-repeat="dependencia in dependencias" value="{{dependencia}}">{{dependencia}}</option>
</select>
My app.js:
$scope.dependencias = {};
DepSrv.cargar().then( function(){
$scope.dependencias = DepSrv.config.data.DEPENDENCIAS;
});
Greetings.