Property 'required' Comes From An Index Signature, So It Must

[Solved] Property 'required' Comes From An Index Signature, So It Must | Typescript - Code Explorer | yomemimo.com
Question : Property 'required' comes from an index signature, so it must be accessed with ['required']

Answered by : motionless-mantis-q2ea5gs44vre

// It change a little bit in angular 13
<div *ngIf="firstName.errors?.['required']">First Name is required</div>

Source : https://stackoverflow.com/questions/70106472/property-fname-comes-from-an-index-signature-so-it-must-be-accessed-with-fn | Last Update : Tue, 22 Feb 22

Answers related to Property 'required' comes from an index signature, so it must be accessed with ['required']

Code Explorer Popular Question For Typescript