Attempted to modify a solution found here. The modification works well, but when changing the template to templateUrl in the component that needs to be loaded dynamically, an error occurs: "No ResourceLoader implementation has been provided. Can't read the URL ...".
@Component({
selector: 'string-editor',
templateUrl: 'app/parts/string.html', //using template URL instead of inline template here
})
export class StringEditor { ... }
You can view a live example on Plunker. Any suggestions on how to resolve this issue?