Is it possible to use different HTML templates for the same TypeScript file, based on an expression in the constructor?
I am looking for something like this:
<div class="container-fluid">
<app-teste1 *ngIf="teste == '1'>
<app-teste2 *ngIf="teste == '2'>
</div>
and in the constructor:
this.teste = 1
So the first component should be rendered (app-teste1).
My component has many properties, is there another way to achieve this without passing various input/output properties?