I would suggest implementing product as a direct, this way each product
card has its own scope.  Then you can just build out the directive and have
click binding to update which buttons should be shown.

On Mon, Apr 4, 2016 at 3:11 PM, Amit Swain <[email protected]> wrote:

> Hi All
> I have a list of Products and on each Product i have a 'Add  To Cart'
> button ..once user clicks and adds i have to hide it and Show the
> remove and Add more Button..How can i achieve it using Angular..Its will
> not be the right way to declare this much of variables for all the
> Products...
>
> One thing more i dont want to load and change the total product list
> again....
>
> it will not be proper convention for manipulationg DOM using Id inside
> Controllers...
>
> Any Solution...Thanks in Advance
>
>
> --
> 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 https://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to