snapjay / ngCart

Really simple shopping cart for AngularJS
http://ngcart.snapjay.com
380 stars 236 forks source link

How to get each item's id in controller??? #56

Closed Zenuncl closed 8 years ago

Zenuncl commented 8 years ago

I am going to need send my data (cart and user info) to my backend. But i try to use for (item in ngCart.getCart()) to get each item's id buut it does not work. anyoen have idea how to do it?

Zenuncl commented 8 years ago

OK, I think i solve that problem.

But i have one new question. Is there any function to empty cart?? Like if user want to empty all items or after checkout to refrush cart

snapjay commented 8 years ago

See the documentation http://ngcart.snapjay.com/docs ngCart.empty() will empty the cart. Please keep this space for issues; not help with implementation.