error- Property '…' has no initializer and is not definitely assigned in the constructor, add this in tsconfig.json code example
Example: Property 'products' has no initializer and is not definitely assigned in the constructor.
//inside tsconfig.json file
"angularCompilerOptions": {
// ...
"strictPropertyInitialization": false
// ...
}