Can $ config template be an external file?

$ sample shows that one can embed html in the tempate as follows:
var myPopup = ${
template: ‘’

can the template be replaced by?
template: ‘dialogs/wifi_authentication.html’

where dialogs is a folder and wifi_authentiation.html is an HTML file in it.

Never mind, found it: templateUrl is the answer.
Leaving post here to those who are interested.