My template is dynamically derived from the complex rules driven from the Java layer.
Is there a way to dynamically set or update a component's template on ngOnInit
for instance or wherever appropriate?
My template is dynamically derived from the complex rules driven from the Java layer.
Is there a way to dynamically set or update a component's template on ngOnInit
for instance or wherever appropriate?
Angular2 allows the component's template to be pointed to a file.
@Component({
selector: 'mycomponent',
templateUrl: 'views/mycomponent.html'
})
You can make it point to a dynamically generated page instead.