<input pInputText type="text" formControlName="description" class="form-control" placeholder="Required" *ngIf="pageModes[formModel.schema.mode] === pageModes[pageModes.View] />
Above is the input box which I used.. My condition:
IF(pageModes[formModel.schema.mode] === pageModes[pageModes.View])
{
-----------(disable the input box)-------------------
}
ELSE
{
-----------(enable the input box)-------------------
}
When I simply use the condition pageModes[formModel.schema.mode] === pageModes[pageModes.View]
, the input box got invisible.
Can anybody help me to disable the input box using the condition "pageModes[formModel.schema.mode] === pageModes[pageModes.View]"