roperty 'names' has no initializer and is not definitely assigned in the constructor. code example
Example 1: roperty 'form' has no initializer and is not definitely assigned in the constructor.
It's better to add the ! postfix operator to the variable name, to just ignore this case, or initialize the variable inside the constructor.
Example 2: roperty 'form' has no initializer and is not definitely assigned in the constructor.
Just go to tsconfig.json and set
"strictPropertyInitialization": false
to get rid of the compilation error.
Otherwise you need to initialize all your variables which is a little bit annoying