Angular js cannot display bootstrap modal when moving to another folder

I use bootstrap.ui modal and angular as the interface and using node.js as the backend on the node.js server, I used / views for the ejs template and a public folder for storing static resources.

app.set('views',__dirname+'/views');
app.engine('.html', ejs.__express);
app.set('view engine', 'html');

app.use(express.static(__dirname+'/public'));

Previously, my angular page was in the static / public folder, the modal work is fine. but then I moved the angular page to the view folder, the page loaded in order. but when it comes to modality, the page cannot display modal, displaying error

Error: [$compile:tpload] http://errors.angularjs.org/1.2.7/$compile/tpload?p0=template%2Fmodal%2Fwindow.html

http://errors.angularjs.org/1.2.7/$compile/tpload?p0=template%2Fmodal%2Fbackdrop.html

Thus, the error is caused by the fact that template / modal / window.html and template / modal / backdrop.html are still in the shared folder, that my angular page cannot find this file again.

, , .

+3
1

, templateUrl modal.js (. 64 86)?

: Github PR, Github.

+3