Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

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

Open
mahyar-pasarzangene opened this issue Sep 24, 2017 · 1 comment

Comments

@mahyar-pasarzangene
Copy link

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
Copy link

jbeynar commented Oct 21, 2018

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

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

No branches or pull requests

2 participants