Angular Opting in to Strict Mode
Angular v10 strict opt-in mode that allows to perform more build-time optimizations and help you deliver faster apps with fewer defects. This mode is still only an opt-in because it comes with its trade-offs — stricter type checking and extra configuration. Opting in to Strict Mode To opt into the strict mode, you need to create a new Angular CLI app, specifying the --strict flag: ng new my-app --strict The command above will generate a workspace with the following settings enabled on top of the defaults: Strict mode in TypeScript, as well as other strictness flags recommended by the TypeScript team. Specifically, strict, forceConsistentCasingInFileNames, noImplicitReturns, noFallthroughCasesInSwitch Turns on strict Angular compiler flags strictTemplates and strictInjectionParameters Reduced bundle size budgets by ~75% Turns on no-any TSLint rule to prevent declarations of type any Marks your application as side-effect free to enable more advanced tree-shaking Str...