When using a Pipe with ngFor, it seems the field values of the object type I am iterating over are not recognized. Once the Pipe is removed, the IDE recognizes them fine. The code runs fine, but cannot seem to alleviate this issue and would like to correct my execution if it is incorrect somehow.
Also, I have a Directive that is attached to a button linking the innerHTML to a variable “statusMessage”
[innerHTML]=”statusMessage”
“statusMessage” highlights as “not defined”
<button type=”button” class=”btn” appButtonStatus [(stbStatus)]=”stb.status” (click)=”statusBtn(i, stb)” [innerHTML]=”statusMessage”></button>
in the Directive it is the binding is structured as such:
@HostBinding(‘innerHTML’) statusMessage: String;