hey,
whats the result of the getSlide($scope.slides) function?
Am Montag, 13. Juli 2015 16:02:21 UTC+2 schrieb Felix Ivan Romero RodrÃguez:
>
> I'm having an issue with duplicated html elements, my app starts with an
> empty list of slides, and by clicking i will adding it. I am using a
> ng-reapeat inside li for updating my slides.
> Something like this:
>
> <ul class="overview">
> <li data-ng-repeat="slide in slides track by $index" >
> <div class="slide" data-ng-click="getFocus({{ '{{ slide.id }}' }})">
> {{ '{{ slide.label }}' }}
> </div>
> </li>
> </ul>
>
> and my controller is
>
>
> $scope.addSlide = function(){
>
> $current = getSlide($scope.slides);
> $scope.slides.push($current);
> $noticia.slides = $scope.slides;
> var pantalla = new $ngPantalla({
> id: $noticia.slides.length
>
> });
> $noticia.pantallas.push(pantalla);
>
>
>
> }
>
> When i clicked the add buttons, it generates two html elements. the
> duplicated one has this class
>
> ng-scope mirrored
>
> how can i avoid this duplicated element?
>
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.