I have my example: string;
in my component.ts
file. I can output this variable in two ways (at least that I know of):
I can do:
<p>{{ example }}</p>
and I can do:
<p [innerHTML]="example"></p>
Well, when I use the first way, my IDE (phpStorm) tells my that my var is unnecessary because I never used it. But when I use the second way, it says I'm using it.
Does it matter which method should I use?