bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

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

Open mahyar-pasarzangene opened this issue 8 years ago • 1 comments

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

mahyar-pasarzangene avatar Sep 24 '17 14:09 mahyar-pasarzangene

"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.

jbeynar avatar Oct 21 '18 09:10 jbeynar