Back
Written by Sandeep B on June 13 2019

Angular 12 features

Angular Journey
Share:

Hey there,

Version 12.0.0 is here and it has some great updates for Angular developers everywhere. πŸŽ‰πŸŽ‰

#TL;DR πŸ™Œ

βœ… Moving closer to IVY engine and get rid of view engine

βœ… Getting rid of protractor. Adding support to Cypress, WebdriverIO, and TestCafe

βœ… Nullish Coalescing in templates

βœ… Docs Updated | Docs updating | Docs will be updated

βœ… Stylish improvements

βœ… Strict mode by default

βœ… Ivy-based Language Service

βœ… Experimental support for Webpack 5

βœ… supporting TypeScript version to 4.2 ( 4.3 is in beta)

βœ… Bye bye IE11 - New deprecation warning message in Angular v12 β€” and remove support for IE11 in Angular v13

βœ… PR merges from community

How to update to version 12

Visit update.angular.io for detailed information and guidance. To have the best update experience,

Update to 12

ng update @angular/cli @angular/core

In order to update your global angular,

npm i -g @angular/cli

What’s in this release?

βœ… Moving closer to IVY engine πŸ‘Œ

  • View Engine is basically deprecated, it will be removed in a future major release

  • Current libraries using View Engine will still work with Ivy apps (no work is required by developers), but library authors should start planning to transition to Ivy.

πŸ‘‰ Read about this from Minko Gechev right here

βœ… Goodbye to Protractor

  • Angular 12 opted to not include protractor in new projects and, instead, provide options with popular 3rd party solutions in the Angular CLI. Angular team currently working with Cypress, WebdriverIO, and TestCafe
  • New things to learn πŸŽ‰πŸŽ‰

βœ… Nullish Coalescing

  • We can use nullish coalescing in angular components nullish

βœ… Documentation updates

βœ… Stylish Improvements

  • Angular components will now support inline Sass . Previously, Sass was only available in external resources due to the Angular compiler
  • To enable this feature in your existing applications add "inlineStyleLanguage": "scss” to angular.json. Otherwise, it will be available to new projects using SCSS

In the v11.2 release, added support for Tailwind CSS.

  • install the tailwindcss package from npm

  • initialize Tailwind to create the tailwind.config.jsin your project.

  • Now, teams are ready to start using Tailwind in Angular.

βœ… Great Features

  • πŸ‘‰ ng build now defaults to production which saves teams some extra steps and helps to prevent accidental development builds in production . ng build === ng build --prod

  • πŸ‘‰ Strict mode is enabled by default in the CLI

  • πŸ‘‰ The Ivy-based Language Service is moving from opt-in to on by default

  • πŸ‘‰ Added experimental support for Webpack 5

  • πŸ‘‰ Updating the supported TypeScript version to 4.

βœ… Bye Bye IE11

  • πŸ‘‰ New IE11 deprecation warning message in Angular v12 β€” and remove support for IE11 in Angular v13

βœ… Multiple code merges

For more let us hear it from the creators

Credits : Official Announcement πŸ˜„

Edit this post on GitHub
Sandeep B

Sandeep B

Frontend engineer writing about Angular, JavaScript, and the occasional deep dive into whatever's currently breaking my build.

Subscribe to my
Newsletter

Subscribe to my newsletter to receive exclusive content, latest news and updates