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