I am creating dynamic HTML in the component but the normal ionic style is not working.
In html :
<div [innerHTML]="testHtml"> </div>
In component(ts)
public testHtml = "<button color='secondary' ion-button>Default</button>";
I also tried to trust html using pipe but that make working inline style only:
In pipe:
this.sanitizer.bypassSecurityTrustHtml(html);