Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Templates are missing #9

Closed
jotbe opened this issue Aug 23, 2013 · 2 comments
Closed

Templates are missing #9

jotbe opened this issue Aug 23, 2013 · 2 comments

Comments

@jotbe
Copy link

jotbe commented Aug 23, 2013

When I install bootstrap using bower install angular-bootstrap, only the JS files are installed. The referenced templates are missing. If it is by design, which way is recommended to include the templates into my angular app?

@pkozlowski-opensource
Copy link
Member

@jotbe yes, there are only js files in the distribution but some of them (ones with the -tpls) in the name are embeding templates in JavaScript (using $templateCache: http://docs.angularjs.org/api/ng.$templateCache).

More info about different types of files available in the distribution can be found here:
https://github.com/angular-ui/bootstrap/tree/gh-pages#build-files

Also be sure to go over the "Getting started" section of the demo page: http://angular-ui.github.io/bootstrap/

Please not that you need only one of the listed files. If in doubt pick this one: ui-bootstrap-tpls-[version].min.js

As the last note: templates from directives should be never downloaded one by one from web server but rather embedded with your app via $templateCache.

@jotbe
Copy link
Author

jotbe commented Aug 25, 2013

Thank you for the hint about the $templateCache! I digged through the page with the build-files before and included the corresponding tpls-[version].min.js, but could not get it working somehow. Will take a deeper look at it. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants