I am having trouble displaying a dialog in my Angular app with Onsen UI 1.3.6.
Whenever I try to show the dialog, I encounter a 404 Not Found error.
This is the JavaScript code I am using:
ons.createDialog('iconselector.html').then(function(dlg) {
dlg.show();
});
Here is the HTML code:
<ons-template id="iconselector.html" cancelable>
<ons-dialog>
<p>Hello world1</p>
</ons-dialog>
</ons-template>
The error message I receive states:
GET http://localhost/yourdomain/templates/iconselector.html 404 (Not Found) startSymbol @ loader.js:1433sendReq @ loader.js:1432$get.serverRequest @ loader.js:1432processQueue @ loader.js:1433(anonymous function) @ loader.js:1433$get.Scope.$eval @ loader.js:1435$get.Scope.$digest @ loader.js:1435(anonymous function) @ loader.js:1435completeOutstandingRequest @ loader.js:1430(anonymous function) @ loader.js:1430
However, when I attempt to display any templates as a normal page using the Tab bar's loadPage('somepage.html') method, they work perfectly fine.