When targeting Angular v19+ (or modernizing to it), align your package peer/dependency baselines and update tsconfig to the corresponding strict compiler settings—then apply the same policy across all Angular examples.
Apply:
strictTemplates: truestrictStandalone: true (new in v19)skipLibCheck: true and isolatedModules: true).Example tsconfig (pattern):
{
"compilerOptions": {
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"skipLibCheck": true,
"isolatedModules": true,
"target": "ES2022",
"module": "ES2022",
"lib": ["ES2022", "dom"]
},
"angularCompilerOptions": {
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true,
"strictStandalone": true
}
}
Also update example package.json dependencies together (Angular major/minor, zone.js, and TypeScript) so the toolchain is coherent.
Enter the URL of a public GitHub repository