Property 'allItems' has no initializer and is not definitely assigned in the constructor.ts(2564) code example

Example 1: Property 'firstName' has no initializer and is not definitely assigned in the constructor

"angularCompilerOptions": {
    //   ...
    "strictPropertyInitialization": false
    //   ...
  }

Example 2: Property 'products' has no initializer and is not definitely assigned in the constructor.

//inside tsconfig.json file
"angularCompilerOptions": {
    //   ...
    "strictPropertyInitialization": false
    //   ...
  }

Tags:

Misc Example