AngularJS uiModal embedded template


Using these versions of angularJS and bootstrap. My uiModal only wants to look externally.
When I check the GET requests, it’s looking for the templateUrl from the server.
The templateUrl is within script tags in the index.html

This is within my

let modalInstance = ${
animation: true,
templateUrl: 'example.html'});

And this is within my index.html, within the body.

<script type="text/ng-template" id="example.html">

In fact, even if I just try template: ‘foo’ , it still doesn’t work.

Must be something small I’m missing, this isn’t a problem in other projects… although maybe different versions of angularJS.

Source: AngularJS Questions

Categorized as angularjs Tagged


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us