I am building an angular web app and am trying to incorporate ngCart. I installed it using bower install ngcart --save
, incorporated the bower file in my index.html file and injected it as a dependency into the app. When I try to use the <ngcart-addtocart>
directive (only incorporating the ngcart-addtocart
tag in the view file) I get the following error - Error: [$compile:tpload] Failed to load template: template/ngCart/addtocart.html (HTTP status: 404 Not Found)
I suspect it is something simple I am missing. Thank you!
In ngcart folder there is a template folder name, you copy it to the project folder, because it contains the html he complained lack.
look in the
ngCart
directory thatbower
installed downloaded the files to.then in the directive write in the template location.