The last month gets new version release Angular 10.0.0 only 4 months after version 9 of Angular, Lets see whats new features are available to use:
- New Date Range Picker
- Strict Mode
- Default browsers changed
- Typescript Updates
- Warnings about CommonJS imports
New Date Range Picker
Angular material now includes new date range picker, here you can select start and end date.
It provides you strict flag at the time of creation new project and using that we will get code maintainability and able to catch bug ahead of time.
ng new --strict
- Reduced bundle size by~75%
- Strict Mode enabled in Typescript
- App configure as side-effect free to enable tree-shaking
- Turn on linting rule
- Turn on template type checking strict
Default Browser Changed
Angular decided to officially deprecate support for IE 9, 10 and Internet Explorer Mobile.Developer don’t have to worry about to do old browser support 🙃.
To stay up to date with typescript latest libraries upgrade support to TypeScript 3.9, TSLib 2.0, and TSLint 6.
In Layout added new
tsconfig.json file to support of IDE’s and build tooling resolve type and package configurations.
Warnings about CommonJS imports
This features notifying to developer when dependency packaged with CommonJS results in larger and slower applications, allows to developer to changed ECMAScript module bundle.
How to upgrade?
ng update @angular/cli @angular/core
You can read more updates here Updating to version 10 guide.