snapjay / ngCart

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

Underscore issue #1

Closed kferran closed 10 years ago

kferran commented 10 years ago

Running into an issue:

at itemInCart (ngcart.js:89:23) var a= _.find(this.getCart(), {id:itemId});

at addItem (ngcart.js:69:31) var inCart = this.itemInCart(id)

Is underscore a dependency of this project?

I should mention that I do have underscore included in the project and am still getting this error.

snapjay commented 10 years ago

It is; but ideally it's lodash. You can find the dependencies in the bower.json file

kferran commented 10 years ago

Derp... Thanks man! Great library by the way!

snapjay commented 10 years ago

Thanks!