Open iloveip opened 6 years ago
What version of ng-dialog are you using? 1.4.0
What version of AngularJS are you using? 1.5.7
What browsers are affected? Chrome, Safari
Please provide either a JSFiddle, Plunkr example that replicates the issue
Please describe the issue I have a script tag:
<script type="text/ng-template" id="modal"> <h1>Template heading</h1> </script>
And the following code for ngDialog.open:
ngDialog.open
$scope.openModal = function () { ngDialog.open({ template: 'modal' }); };
But it doesn't work and says that http://localhost:4000/modal is not found.
http://localhost:4000/modal
What did you expect to happen? Make it work with a script tag.
What actually happened? It only works with an external modal.html file.
modal.html
Hi there,
How can I make ngDialog.open work with a script tag inside the same file?
Were you able to find any solution for this? I am also facing the same issue.
What version of ng-dialog are you using? 1.4.0
What version of AngularJS are you using? 1.5.7
What browsers are affected? Chrome, Safari
Please provide either a JSFiddle, Plunkr example that replicates the issue
Please describe the issue I have a script tag:
And the following code for
ngDialog.open
:But it doesn't work and says that
http://localhost:4000/modal
is not found.What did you expect to happen? Make it work with a script tag.
What actually happened? It only works with an external
modal.html
file.Hi there,
How can I make
ngDialog.open
work with a script tag inside the same file?