2
With the following code, I am saying that in the second array contained in the object $scope.listademercadoria
there is the property "quantity", and I am declaring it as value 0.
$scope.listademercadoria[1].quantidade = 0;
there is a way to select only the array that contains certain id as property?
Ex: $scope.listademercadoria[id = 2].quantidade = 0;
If it worked, it would take only arrays containing id=2 and select the quantity for 0.
Is there any way to do this without using the $filter
? If not, how would you end up with the $filter
?
At which point it arrow the property 'quantity', parallel to 'id', to 0?
– Gymo
@Guilhermesilvadeoliveira in the example nowhere, now just you take the variable
fitlrado
and manipulate as you please.– Sorack