Refer to Ionic External Template from app.js File

I have an Ionic external template residing in add-new-window-modal.html. This file is inside the templates folder at the “www” level.

I use the following code to refer to the template but it does not work. It also does not throw any errors:

$ionicModal.fromTemplateUrl(‘templates/add-new-window-modal.html’,{