Updated Version
There’s an updated version of this article here:
Scenario
We have a Hola
component that should display HOLA!
when spanish
is true.
Approach
Use brackets:
<halo-comp #h [spanish]="true" [text]="h.spanish ? hola : hello"></halo-comp>