How do I dynamically add html to template from a class variable

Hi

You can use ngFor, ngIf or ngSwitch to use angular’s dynamic feauters, besides custom components. Innerhtml is a matter of taste and I use it, but it allows a limited set of html tags to be used

Check angular.io on structural directives

Using jquery to manipulate the Dom is like using BMW parts to make a Mercedes drive. It can work but eventually is a dead end street. Cant have angular and jquery fight for DOM manipulations.

Many discussion have been done on this part in this forum. Your choice on how to make it work

Regards

Tom