0

i have an angular reactive form, so when i declare a variable withe a FormGroup type like this :

  updateModf:FormGroup;

, the IDE shows me this error:

Property 'updateModf' has no initializer and is not definitely assigned in the constructor.

19   updateModf:FormGroup;
  • Does this answer your question? [Property '...' has no initializer and is not definitely assigned in the constructor](https://stackoverflow.com/questions/49699067/property-has-no-initializer-and-is-not-definitely-assigned-in-the-construc) – Yong Shun Jul 05 '21 at 01:00

1 Answers1

0

Move initializing to constructor as error message says.

tmsbrndz
  • 1,297
  • 2
  • 9
  • 23