Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular js - Error: [$parse:lval] Trying to assign a value to a non l-value [closed]

Tags:

angularjs

I have an error in this line of my code, but the code fulfills its mission. I do not understand what can happen. I am very new with angular

<md-list-item ng-show="cargando == false" ng-repeat="idea in ideas2 = (ideas | orderBy : '-Created' | filter: filterData | filter:buscaAprobadas)" ng-class="md-1-line && { evaluada: idea.Estado !='Aprobada'} " ng-click="idea.Estado != 'Aprobada' || idea.selected = !idea.selected">
like image 717
dvargas Avatar asked Aug 03 '17 12:08

dvargas


1 Answers

Your last comparison: idea.selected = !idea.selected is an assignment. You want to change it to idea.selected == !idea.selected or something similar.

like image 55
Mike Feltman Avatar answered Nov 15 '22 04:11

Mike Feltman