mardi 1 avril 2014

Possible bug in Angular?


Vote count:

0




I have the next code:



<ol class="breadcrumb">
<li ng-repeat="ruta in rutas" >
<a ng-click="seleccionarDirectorioRuta(ruta)" >{{ruta.nombre}}</a>
</li>
</ol>


the method seleccionarDirectorioRuta:



alert($scope.rutas.length);
$scope.directoriosActuales = [];
$scope.rutas.push(directorio);
alert($scope.rutas.length);


In the alerts show 1 and 2 (or n and n+1), but the breadcrumb don't updated.


Any idea?



asked 27 secs ago






Aucun commentaire:

Enregistrer un commentaire