Angular 10 was released on June
24, 2020. Angular 10 offers support for TypeScript v3.9
To upgrade an existing Angular 9 application to Angular 10, just run
the ng update command as follows
ng update @angular/cli @angular/core
Angular 10 provides --strict option while creating the project, this
switch enables the strict mode in TypeScript and turns template type checking to
Strict. The --string switch help you catch bugs ahead of time and allow the
CLI to perform advanced optimizations.
ng new --strict
Angular generates bundles based on the Browserlist configuration
provided in the root app folder. Angular 10 will lookup for a .browserlistrc in your app but fall
back to browserlist if not found. The ng update command will rename the file
for you.
Angular 10 by default does not have older browsers in the
.browserslistrc file, as a result, the ES5 bundles are not generated. To enable
ES5 builds and differential loading for browsers simply add the browsers you
need to support in the .browserslistrc file.
No comments:
Post a Comment