Is it possible to load templates from external URLs? This is what I'm currently trying to do, but Angular seems to be ignoring it without throwing any errors and the page just keeps on loading indefinitely.
@Component(
selector: 'dashboard-page',
//templateUrl: '../templates/dashboard-page.html',
templateUrl: 'http://localhost:9091/html/dashboard-page.html',
directives: const [],
pipes: const []
)
class DashboardPage implements AfterContentInit {
http://localhost:9091/html/dashboard-page.html
I can access directly and CORS is setup to allow the Dart application on port 8080 to communicate with the Kotlin application on port 9091.
I'm trying to load different HTML templates depending on the account profile - different accounts will see different HTML templates being served by the Kotlin code.
I this something that can be done or is not possible for Angular2 to load external template files?