angular-ui / bootstrap-bower

This is a bower repository to hold Angular UI Bootstrap releases.
http://angular-ui.github.com/bootstrap/
158 stars 326 forks source link

Unclear how template files are to be managed. #1

Closed jevonearth closed 11 years ago

jevonearth commented 11 years ago

After installing angular-ui-bootstrap-bower into my angular project, it can't find its own template files, resulting in browser errors like;

GET http://localhost:9000/template/tooltip/tooltip-popup.html 404 (Not Found)

How should users manage template files in this scenario?

pkozlowski-opensource commented 11 years ago

@jevonearth

Short story:

Include ui-bootstrap-tpls-0.2.0.min.js instead of ui-bootstrap-0.2.0.min.js in your project.

Long story:

Please have a look at the installation instructions here: https://github.com/angular-ui/bootstrap/tree/gh-pages#installation

Bower pulls all the types of files described above and there are 2 versions of them: with templates embedded and without templates. Version without templates embedded is for people who want to override default templates - in this case you would create your own templates.

But I presume that you just want to use default templates, in this case include ui-bootstrap-tpls-0.2.0.min.js instead of ui-bootstrap-0.2.0.min.js in your project.

Let me know how it goes!

jevonearth commented 11 years ago

Awesome, thanks @pkozlowski-opensource

I was a bit too quick to open this issue. When I opened https://github.com/angular-ui/bootstrap-bower I saw no README.md, and then fired off this issue.

Works great, thanks!