Closed jotbe closed 11 years ago
@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.
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. :)
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?