I'm considering using non-Angular transport to load templates asynchronously (actually I would like to decide on build time if the template is a string or a promise coming from the request), like
@Component({
directives: [],
selector: 'some',
template: System.import('./some-template!text')
})
export class SomeComponent {}
Can a promise (coming from request) be provided as component template?
Is there some kind of templateProvider
functionality for directives/components?