Closed kabukki closed 7 years ago
Hi there, thank you for your input !
There was a problem indeed. I fixed it in 4de2406216c81a4e89ecf4d1f38ed81625860b07 and added some explanation on the demosite.
Now, templateUrl
is replaced by templateId
. In a case like yours, where the filepath and the template id are the same, just the templateId
is enough.
In case you have multiple templates in one file (or a filepath that is different from the template id), you need to set both properties: templateUrl
for the filepath, templateId
for the template you want.
Let me know if you still encounter any issues.
Thank you very much, it works as expected now ! I can use my custom templates :smile:
I noticed that the first time the modal shows up, it's just a black screen, but the second time it works well. This is due to it getting loaded from $templateCache on the second try.
My template (located in templates/ directory)
And how I call showModal :
Thanks for this neat tool by the way !