DEV Community

Discussion on: Property 'name' comes from an index signature, so it must be accessed with ['name'].

Collapse
 
kamil7x profile image
Kamil Trusiak
*ngIf="categoryForm.name.invalid && isSubmitted"
Enter fullscreen mode Exit fullscreen mode

Change it to:

*ngIf="categoryForm['name'].invalid && isSubmitted"
Enter fullscreen mode Exit fullscreen mode

And it the same for all other .name and .icon