loginov-rocks / Angular-Gulp-Boilerplate

Clean but full-featured AngularJS boilerplate using Gulp workflow and best practices
https://www.npmjs.com/package/angular-gulp-boilerplate
MIT License
29 stars 17 forks source link

cannot get issue when requesting a url directly from address bar or using a bower component #14

Closed mateeqazam closed 6 years ago

mateeqazam commented 6 years ago

Error: [$compile:tpload] Failed to load template: template/ngCart/addtocart.html (HTTP status: 404 Not Found) This is ngCart which is installed as bower install ngcart --save in order to use it you just use its provided directive as

But when you load your html with this directive in it, it gives the error above and same is for any url you request e.g. if there is a state as localhost:3000/test it does not go to that state. It simply says cannot GET /test but if you click on any link with /test in its href, it will open it. I have been trying to solve this for hours now and had no result. Do you know what is wrong here ? Kindly help

loginov-rocks commented 6 years ago

Hi @mateeqazam !

It's hard to guess what happened in your case, it seems that the problem is related to paths misconfiguration. So to understand the issue, can you provide a small example? Or may be AngularJS docs can help you somehow: https://docs.angularjs.org/error/$compile/tpload

loginov-rocks commented 6 years ago

Closing as a month has passed.