angular-ui / bootstrap

PLEASE READ THE PROJECT STATUS BELOW. Native AngularJS (Angular) directives for Bootstrap. Smaller footprint (20kB gzipped), no 3rd party JS dependencies (jQuery, bootstrap JS) required. Please read the README.md file before submitting an issue!
http://angular-ui.github.io/bootstrap/
MIT License
14.28k stars 6.73k forks source link

[$compile:tpload] Failed to load template: uib/template/modal/window.html (HTTP status: 404 Not Found) #6637

Open mahyar-pasarzangene opened 7 years ago

mahyar-pasarzangene commented 7 years ago

Bug description:

I've added ui-bootstrap to an angular 1.x project and getting this error when I want to open a modal form

[$compile:tpload] Failed to load template: uib/template/modal/window.html (HTTP status: 404 Not Found)

I've used ui-bootstrap before and always it worked well but in my new project I have problem with it.

the code is like : $uibModal.open({ backdrop: 'static', templateUrl: 'DesktopModules/' + window.GLOB.moduleFolderName + '/app/form/form.html', controller: 'requestCtrl', size: 'sm', scope: $scope }); angular ver : v1.5.8

UIBS: v2.2.0

Bootstrap: v3.3.7

jbeynar commented 5 years ago

"It should be noted that the -tpls files contain the templates bundled in JavaScript, while the regular version does not contain the bundled templates." https://angular-ui.github.io/bootstrap/

You forgot to include ui-bootstrap-tpls.min.js file in your index.html or whatever loads your application.