How could I change the html template during the excecution of the application?
I would do pretty much anything possible to avoid doing that. In production, templates are converted to classes by the AoT compiler, so you are likely to find lots of ugly hacks that may work in dev mode but won’t when deploying to devices.
It’s for a WYSIWYG GUI tool I’m developing. It’s for development stage.