2020-02-21

Angular 9 Is Now Available - What new?

The 9.0.0 release of Angular is here! This release including the framework, Angular Material, and the CLI. This release switches applications to the Ivy compiler and runtime by default, and introduces improved ways of testing components.

This is one of the biggest updates to Angular made in the past 3 years, it empowers developers to build better applications and contribute to the Angular ecosystem.

How to update to version 9


First, update to the latest version of 8
ng update @angular/cli@8 @angular/core@8

Then, update to 9
ng update @angular/cli @angular/core

Ivy

Version 9 moves all applications to use the Ivy compiler and runtime by default.

Ivy compiler and runtime advantages:


  • Smaller bundle sizes
  • Faster testing
  • Better debugging
  • Improved CSS class and style binding
  • Improved type checking
  • Improved build errors
  • Improved build times, enabling AOT on by default
  • Improved Internationalization


Faster testing


Previously, TestBed would recompile all components between the running of each test, regardless of whether there were any changes made to components.

In Ivy, TestBed doesn’t recompile components between tests unless a component has been manually overridden, which allows it to avoid recompilation between the grand majority of tests.

Improved CSS class and style binding

The Ivy compiler and runtime provides improvements for handling styles.

<my-component style="color:red;" [style.color]="myColor" [style]="{color: myOtherColor}" myDirective></div>

@Component({
  host: {
    style: "color:blue"
  },...
})
...

@Directive({
  host: {
    style: "color:black",
    "[style.color]": "property"
  },...
})
...

<div [style.--main-border-color]=" '#CCC' ">
  <p style="border: 1px solid var(--main-border-color)">hi</p>
</div>

Improved type checking

These features will help you and your team catch bugs earlier in the development process.

  • fullTemplateTypeCheck — Activating this flag tells the compiler to check everything within your template (ngIf, ngFor, ng-template, etc)
  • strictTemplates — Activating this flag will apply the strictest Type System rules for type checking.

New components

You can now include capabilities from YouTube and Google Maps in your applications.
  • You can render a YouTube Player inline within your application with the new youtube-player. After you load the YouTube IFrame player API, this component will take advantage of it.
  • We are also introducing google-maps components. These components make it easy to render Google Maps, display markers, and wire up interactivity in a way that works like a normal Angular component, saving you from needing to learn the full Google Maps API.

13 comments:

  1. Thanks for your information ,We are also providing Angular 9 Online Training in our institute Nareshit. We are having the best and experienced faculty in our institute. By joining in this course you will get complete knowledge about Angular 9 course.

    Website : https://nareshit.in/angular-9-training/

    Demo Link: https://zoom.us/j/93943708723

    REGISTER HERE : https://goo.gl/HIB0wL

    ReplyDelete
  2. Nice articel, This article help me very well. Thank you. Also please check my article on my site about What Is Angular?.

    ReplyDelete
  3. As a programmer myself, I understand the value of time and expertise. If you're looking to pay for assignment, it's crucial to find a reliable service that aligns with your needs. Ensure the platform offers qualified programmers who can deliver high-quality work within your deadlines. Remember, investing in professional assistance can save you time and stress, allowing you to focus on other important aspects of your programming journey. Choose wisely and watch your skills flourish!




    ReplyDelete
  4. This post gives a useful outline of the most recent highlights and improvements in Angular 9. The creator's unmistakable clarifications and models make it straightforward the headways in this famous web development system. While, attending a truck driving school was a game-changer for me. Not only did it provide me with the necessary skills to confidently handle a commercial truck, but it also instilled a strong sense of responsibility and safety awareness on the road.

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. Great news about Angular 9! The latest update brings exciting new features to enhance web development experiences. By the way, while exploring the possibilities of Angular 9, I stumbled upon Shomi Official, an eastern clothing online store offering an impressive collection of trendy ladies dresses online. It's fascinating how technology advancements like Angular 9 complement the convenience of online shopping, making it easier for users to find the perfect attire at Shomi Official effortlessly.

    ReplyDelete
  7. Power banks have become indispensable in today's tech-driven world, offering a convenient solution to keep our devices charged on the go. Their portable and reliable nature ensures we stay connected when we need it most.

    ReplyDelete
  8. Exciting news! Angular 9's release is a bit like discovering the best pizza deals in Karachi – it's all about embracing the latest and greatest. Just as Angular evolves for better web development, seeking out the top pizza deals means optimizing your dining experience. It's a reminder that progress and innovation are everywhere, whether in coding or crafting the perfect pizza

    ReplyDelete
  9. Exciting news! Angular 9 has arrived, bringing innovative features and enhanced performance. Developers, gear up for a seamless experience. For computer parts wholesale, Angular 9 is a game-changer!

    ReplyDelete
  10. Angular 9 brings speed and efficiency with Ivy compiler and TypeScript 3.7 support. Elevate your projects, especially with an Ajman Freezone license.

    ReplyDelete
  11. In today's digital landscape, it's crucial for businesses to prioritize digital marketing strategies to stay ahead. While programmers play a vital role in developing online platforms, it's equally important for marketers to effectively promote these products or services to the target audience. Collaboration between programmers and online marketers ensures a seamless integration of technology and promotion, driving success in the competitive online market.

    ReplyDelete
  12. "The programmers did a great job enhancing our website with their skills! With their help, our Digital Marketing Services are now reaching more customers effectively. Their expertise truly made a difference in optimizing our online presence."

    ReplyDelete
  13. The programmers first optimized this code for SEO. They ensured that search engines can easily find and understand our website content, improving our online visibility. Great job prioritizing SEO optimization!

    ReplyDelete