I am using ngDialog.open()
to open a dialog. I want to pass in the template id to the function like this:
ngDialog.open({template: 'templateid'});
However, from the Network history, I find it is trying to fetch the templateid
as a file on server.
I feel the ngDialog.open()
function's interface design is a little confusing: The value of template
options parameter can be either inline immediate HTML, or the file path of an HTML file on server, or the id of a <script>
element. How should I distinguish them?
Thanks!