<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sandeep Balachandran</title>
    <description>The latest articles on DEV Community by Sandeep Balachandran (@sandeepbalachandran).</description>
    <link>https://dev.to/sandeepbalachandran</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F111337%2F3d47c847-6750-4f10-a147-ba89e8e176f0.jpeg</url>
      <title>DEV Community: Sandeep Balachandran</title>
      <link>https://dev.to/sandeepbalachandran</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sandeepbalachandran"/>
    <language>en</language>
    <item>
      <title>⭐ Angular 22 Features ⭐</title>
      <dc:creator>Sandeep Balachandran</dc:creator>
      <pubDate>Tue, 24 Nov 2026 09:36:16 +0000</pubDate>
      <link>https://dev.to/sandeepbalachandran/angular-22-features-3hha</link>
      <guid>https://dev.to/sandeepbalachandran/angular-22-features-3hha</guid>
      <description>&lt;p&gt;Hey there,&lt;/p&gt;

&lt;p&gt;Angular 22 is officially here! Well, not today. Back in June 2026&lt;/p&gt;

&lt;p&gt;TL;DR 🙌&lt;/p&gt;

&lt;p&gt;✅ Signal Forms are now stable&lt;/p&gt;

&lt;p&gt;✅ &lt;code&gt;resource&lt;/code&gt;, &lt;code&gt;rxResource&lt;/code&gt; &amp;amp; &lt;code&gt;httpResource&lt;/code&gt; are now stable&lt;/p&gt;

&lt;p&gt;✅ Angular Aria is now stable&lt;/p&gt;

&lt;p&gt;✅ OnPush is the default change detection strategy&lt;/p&gt;

&lt;p&gt;✅ &lt;code&gt;HttpClient&lt;/code&gt; uses Fetch by default&lt;/p&gt;

&lt;p&gt;✅ New &lt;code&gt;@Service()&lt;/code&gt; decorator &amp;amp; &lt;code&gt;injectAsync()&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;✅ Template upgrades: spread, arrow functions, &lt;code&gt;instanceof&lt;/code&gt;, multiple &lt;code&gt;@case&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;✅ Angular Agent Skills &amp;amp; experimental WebMCP&lt;/p&gt;

&lt;p&gt;✅ Requires TypeScript 6, drops Node 20&lt;/p&gt;

&lt;h1&gt; How to update to version 22 &lt;/h1&gt;

&lt;p&gt;Visit &lt;a href="https://angular.dev/update-guide" rel="noopener noreferrer"&gt;angular.dev/update-guide&lt;/a&gt; for detailed information and guidance. To have the best update experience,&lt;/p&gt;

&lt;p&gt;Update to 22&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng update @angular/cli @angular/core
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In order to update your global angular,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm i -g @angular/cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;center&gt;&lt;h2&gt;&lt;u&gt;🔥 What's in this release?&lt;/u&gt;&lt;/h2&gt;&lt;/center&gt;

&lt;h2&gt;
  
  
  ✅ Signal Forms are now stable
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Introduced as experimental in v21, Signal Forms are now production ready&lt;/li&gt;
&lt;li&gt;The form model is just a &lt;code&gt;signal&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;The directive is &lt;code&gt;FormField&lt;/code&gt;, bound with &lt;code&gt;[formField]&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Component&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;signal&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@angular/core'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;FormField&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;required&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;minLength&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@angular/forms/signals'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nd"&gt;@Component&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;selector&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'app-register'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;imports&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;FormField&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;template&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`
    &amp;lt;input [formField]="userForm.login" /&amp;gt;

    @if (userForm.login().getError('minLength'); as error) {
      &amp;lt;p class="error"&amp;gt;{{ error.message }}&amp;lt;/p&amp;gt;
    }

    &amp;lt;button [disabled]="userForm().invalid()"&amp;gt;Register&amp;lt;/button&amp;gt;
  `&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;RegisterComponent&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;user&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;signal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;login&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="n"&gt;userForm&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;form&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;required&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;login&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;minLength&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;login&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'At least 3 characters'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;required&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  New goodies
&lt;/h3&gt;

&lt;p&gt;👉 Date validators&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;minDate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;birthDate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'1900-01-01'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nf"&gt;maxDate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;birthDate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;👉 Debounce validation&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;debounce&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'blur'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;👉 Conditional rules with &lt;code&gt;when&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;disabled&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;age&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;when&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;valueOf&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;valueOf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isAdmin&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ resource, rxResource &amp;amp; httpResource are now stable
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Async data the Signals way, now ready for production
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;httpResource&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@angular/common/http'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;userId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;signal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;user&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;httpResource&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="sb"&gt;`/api/users/${this.userId()}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;@if (user.isLoading()) {
  &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;Loading...&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
} @else if (user.hasValue()) {
  &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;{{ user.value().name }}&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ Angular Aria is now stable
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The headless, accessible components from v21 are out of developer preview&lt;/li&gt;
&lt;li&gt;Accordion, Combobox, Grid, Listbox, Menu, Tabs, Toolbar, Tree and more&lt;/li&gt;
&lt;li&gt;Works with Signal Forms
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm i @angular/aria
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ OnPush is the default
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Components without a &lt;code&gt;changeDetection&lt;/code&gt; now use &lt;strong&gt;OnPush&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ChangeDetectionStrategy.Default&lt;/code&gt; is renamed to &lt;code&gt;ChangeDetectionStrategy.Eager&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ng update&lt;/code&gt; adds &lt;code&gt;Eager&lt;/code&gt; to existing components so nothing breaks
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Component&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;ChangeDetectionStrategy&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@angular/core'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nd"&gt;@Component&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;selector&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'app-legacy'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;template&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`...`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="c1"&gt;// 👉 opt out and keep the old behaviour&lt;/span&gt;
  &lt;span class="n"&gt;changeDetection&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ChangeDetectionStrategy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Eager&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;LegacyComponent&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ HttpClient uses Fetch by default
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;withFetch()&lt;/code&gt; is now the default, so the option is deprecated&lt;/li&gt;
&lt;li&gt;Need the old XHR behaviour? Use &lt;code&gt;withXhr()&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;provideHttpClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;withXhr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// keep XMLHttpRequest&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;👉 &lt;code&gt;reportProgress&lt;/code&gt; is deprecated in favour of &lt;code&gt;reportUploadProgress&lt;/code&gt; and &lt;code&gt;reportDownloadProgress&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  ✅ New @Service() decorator
&lt;/h2&gt;

&lt;p&gt;👉 A shorter replacement for &lt;code&gt;@Injectable({ providedIn: 'root' })&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Before&lt;/span&gt;
&lt;span class="nd"&gt;@Injectable&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;providedIn&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'root'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;UserService&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// After&lt;/span&gt;
&lt;span class="nd"&gt;@Service&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;UserService&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;private&lt;/span&gt; &lt;span class="n"&gt;http&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;inject&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;HttpClient&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// use inject(), not constructor injection&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;ng generate service&lt;/code&gt; now uses &lt;code&gt;@Service()&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Use &lt;code&gt;--injectable&lt;/code&gt; if you still want &lt;code&gt;@Injectable()&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ injectAsync()
&lt;/h2&gt;

&lt;p&gt;👉 Lazy load a service only when you actually need it&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;DashboardComponent&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;private&lt;/span&gt; &lt;span class="k"&gt;readonly&lt;/span&gt; &lt;span class="n"&gt;reportService&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;injectAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'./report.service'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;then&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ReportService&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="nf"&gt;exportReport&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;service&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;reportService&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;service&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;export&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ Template syntax improvements
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Spread operator
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;@let moreNumbers = [...numbers, 4, 5, 6];
@let adminUser = { ...user, role: 'admin' };
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Arrow functions
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;(click)&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"counter.update((value) =&amp;gt; value - 1)"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;-1&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  instanceof
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;@if (pet instanceof Dog) {
  &lt;span class="nt"&gt;&amp;lt;dog-card&lt;/span&gt; &lt;span class="na"&gt;[dog]&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"pet"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Multiple &lt;a class="mentioned-user" href="https://dev.to/case"&gt;@case&lt;/a&gt; matching
&lt;/h3&gt;

&lt;p&gt;👉 Empty cases fall through, just like JavaScript&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;@switch (status()) {
  @case ('pending')
  @case ('processing') {
    &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;⏳ In progress&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
  }
  @case ('done') {
    &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;✅ Done&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Comments inside tags
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;/*&lt;/span&gt; &lt;span class="na"&gt;temporary&lt;/span&gt; &lt;span class="na"&gt;wrapper&lt;/span&gt; &lt;span class="na"&gt;*/&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"card"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ AI-friendly Angular
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Angular Agent Skills
&lt;/h3&gt;

&lt;p&gt;👉 Teach your AI assistant Angular best practices&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx skills add https://github.com/angular/skills
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  WebMCP (Experimental)
&lt;/h3&gt;

&lt;p&gt;👉 Expose your app's actions and forms as tools for AI agents in the browser&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;provideExperimentalWebMcpTool&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="nf"&gt;declareExperimentalWebMcpTool&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'list_users'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Lists all users'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;inputSchema&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="cm"&gt;/* ... */&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;userService&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ Other notable changes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;strictTemplates&lt;/code&gt; is on by default&lt;/li&gt;
&lt;li&gt;Incremental hydration is the default for SSR (&lt;code&gt;withIncrementalHydration()&lt;/code&gt; is deprecated)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;@defer (on idle(500ms))&lt;/code&gt; supports a timeout&lt;/li&gt;
&lt;li&gt;TypeScript 6 is required, Node 20 is dropped&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For more, let us hear it from the creators Credits : &lt;a href="https://blog.angular.dev/announcing-angular-v22-c52bb83a4664" rel="noopener noreferrer"&gt;Official Announcement 😄&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Changelog: &lt;a href="https://github.com/angular/angular/releases/tag/v22.0.0" rel="noopener noreferrer"&gt; Repository &lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>angular</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
    <item>
      <title>⭐ Angular 21 Features ⭐</title>
      <dc:creator>Sandeep Balachandran</dc:creator>
      <pubDate>Tue, 24 Nov 2026 09:36:06 +0000</pubDate>
      <link>https://dev.to/sandeepbalachandran/angular-21-features-21cc</link>
      <guid>https://dev.to/sandeepbalachandran/angular-21-features-21cc</guid>
      <description>&lt;p&gt;Hey there,&lt;/p&gt;

&lt;p&gt;Angular 21 is officially here! Well, not today. Back in November 2025&lt;/p&gt;

&lt;p&gt;TL;DR 🙌&lt;/p&gt;

&lt;p&gt;✅ Signal Forms (experimental), a new signal-based way to build forms&lt;/p&gt;

&lt;p&gt;✅ Zoneless is the default for new apps&lt;/p&gt;

&lt;p&gt;✅ Vitest is now the default test runner&lt;/p&gt;

&lt;p&gt;✅ Angular Aria: headless, accessible UI components (developer preview)&lt;/p&gt;

&lt;p&gt;✅ Angular CLI MCP server for AI-assisted development&lt;/p&gt;

&lt;p&gt;✅ &lt;code&gt;HttpClient&lt;/code&gt; provided by default&lt;/p&gt;

&lt;p&gt;✅ Regular expressions in templates&lt;/p&gt;

&lt;p&gt;✅ New migrations: &lt;code&gt;NgClass&lt;/code&gt; → &lt;code&gt;[class]&lt;/code&gt;, &lt;code&gt;NgStyle&lt;/code&gt; → &lt;code&gt;[style]&lt;/code&gt;&lt;/p&gt;

&lt;h1&gt; How to update to version 21 &lt;/h1&gt;

&lt;p&gt;Visit &lt;a href="https://angular.dev/update-guide" rel="noopener noreferrer"&gt;angular.dev/update-guide&lt;/a&gt; for detailed information and guidance. To have the best update experience,&lt;/p&gt;

&lt;p&gt;Update to 21&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng update @angular/cli @angular/core
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In order to update your global angular,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm i -g @angular/cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;center&gt;&lt;h2&gt;&lt;u&gt;🔥 What's in this release?&lt;/u&gt;&lt;/h2&gt;&lt;/center&gt;

&lt;h2&gt;
  
  
  ✅ Signal Forms (Experimental)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Forms built on top of Signals&lt;/li&gt;
&lt;li&gt;Your form model is just a &lt;code&gt;signal&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Validation is declared in one place, using a schema function&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Creating a form
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Component&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;signal&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@angular/core'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Field&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;required&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@angular/forms/signals'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nd"&gt;@Component&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;selector&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'app-login'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;imports&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;Field&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;template&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`
    &amp;lt;input type="email" [field]="loginForm.email" /&amp;gt;

    @if (loginForm.email().invalid() &amp;amp;&amp;amp; loginForm.email().touched()) {
      @for (error of loginForm.email().errors(); track error) {
        &amp;lt;p class="error"&amp;gt;{{ error.message }}&amp;lt;/p&amp;gt;
      }
    }

    &amp;lt;input type="password" [field]="loginForm.password" /&amp;gt;

    &amp;lt;button [disabled]="loginForm().invalid()"&amp;gt;Login&amp;lt;/button&amp;gt;
  `&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;LoginComponent&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="c1"&gt;// 👉 the model is a plain signal&lt;/span&gt;
  &lt;span class="n"&gt;login&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;signal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="c1"&gt;// 👉 the form is built from the model, plus validation rules&lt;/span&gt;
  &lt;span class="n"&gt;loginForm&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;form&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;login&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;required&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Email is required'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;email&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Enter a valid email'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;required&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Password is required'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Reading the form state
&lt;/h3&gt;

&lt;p&gt;👉 Every field is a signal, so its state updates automatically&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;loginForm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;email&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;value&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;   &lt;span class="c1"&gt;// current value&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;loginForm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;email&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;valid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;   &lt;span class="c1"&gt;// true / false&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loginForm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;invalid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;       &lt;span class="c1"&gt;// whole form&lt;/span&gt;

&lt;span class="c1"&gt;// update the model and the form follows&lt;/span&gt;
&lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;login&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'sandy@dev.to'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'123456'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ Zoneless by default
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;New apps created with &lt;code&gt;ng new&lt;/code&gt; no longer include &lt;code&gt;zone.js&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Change detection is driven by Signals and events&lt;/li&gt;
&lt;li&gt;Smaller bundles, cleaner stack traces, better performance
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// app.config.ts (new projects)&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;ApplicationConfig&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;provideZonelessChangeDetection&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@angular/core'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;appConfig&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ApplicationConfig&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;providers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="nf"&gt;provideZonelessChangeDetection&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;👉 Existing apps keep working with &lt;code&gt;zone.js&lt;/code&gt;. You can move to zoneless when you're ready.&lt;/p&gt;

&lt;h2&gt;
  
  
  ✅ Vitest is the default test runner
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Karma is out, Vitest is in for new projects&lt;/li&gt;
&lt;li&gt;Faster runs and a modern testing experience
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng test
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;TestBed&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@angular/core/testing'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;describe&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;it&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;beforeEach&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'vitest'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;CounterComponent&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'./counter.component'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nf"&gt;describe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'CounterComponent'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;beforeEach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;TestBed&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;configureTestingModule&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;imports&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;CounterComponent&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="nf"&gt;it&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'should increment'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;fixture&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;TestBed&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createComponent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;CounterComponent&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;fixture&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;componentInstance&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;increment&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fixture&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;componentInstance&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;count&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toBe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;👉 Migrating existing Jasmine tests (experimental)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng generate @schematics/angular:refactor-jasmine-vitest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ Angular Aria (Developer Preview)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A new library of &lt;strong&gt;headless&lt;/strong&gt; components&lt;/li&gt;
&lt;li&gt;Accessibility, keyboard navigation and focus are handled for you&lt;/li&gt;
&lt;li&gt;You bring your own styles&lt;/li&gt;
&lt;li&gt;Includes Accordion, Combobox, Grid, Listbox, Menu, Tabs, Toolbar, Tree and more
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm i @angular/aria
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;ul&lt;/span&gt; &lt;span class="na"&gt;ngListbox&lt;/span&gt; &lt;span class="na"&gt;[(value)]&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"selectedFruit"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;li&lt;/span&gt; &lt;span class="na"&gt;ngOption&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"apple"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;🍎 Apple&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;li&lt;/span&gt; &lt;span class="na"&gt;ngOption&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"banana"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;🍌 Banana&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;li&lt;/span&gt; &lt;span class="na"&gt;ngOption&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"mango"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;🥭 Mango&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ Angular CLI MCP Server
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Connect AI assistants (Claude, Copilot, Cursor, Gemini…) to your Angular project&lt;/li&gt;
&lt;li&gt;Gives them up-to-date best practices, docs search, examples and migration tools
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"angular-cli"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"@angular/cli"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"mcp"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ HttpClient provided by default
&lt;/h2&gt;

&lt;p&gt;👉 No more &lt;code&gt;provideHttpClient()&lt;/code&gt; just to inject &lt;code&gt;HttpClient&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Injectable&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;inject&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@angular/core'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;HttpClient&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@angular/common/http'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nd"&gt;@Injectable&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;providedIn&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'root'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;UserService&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;private&lt;/span&gt; &lt;span class="n"&gt;http&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;inject&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;HttpClient&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// works out of the box&lt;/span&gt;

  &lt;span class="nf"&gt;getUsers&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'/api/users'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;👉 Still need interceptors or other config? Keep using &lt;code&gt;provideHttpClient(withInterceptors([...]))&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  ✅ Regular expressions in templates
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;@let isNumeric = /^\d+$/.test(userId());

@if (isNumeric) {
  &lt;span class="nt"&gt;&amp;lt;user-profile&lt;/span&gt; &lt;span class="na"&gt;[id]&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"userId()"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
} @else {
  &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;Invalid user id&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ New migrations
&lt;/h2&gt;

&lt;h3&gt;
  
  
  NgClass → class binding
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng generate @angular/core:ngclass-to-class
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="c"&gt;&amp;lt;!-- Before --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;[ngClass]&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"{ active: isActive, disabled: isDisabled }"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

&lt;span class="c"&gt;&amp;lt;!-- After --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;[class]&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"{ active: isActive, disabled: isDisabled }"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  NgStyle → style binding
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng generate @angular/core:ngstyle-to-style
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="c"&gt;&amp;lt;!-- Before --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;[ngStyle]&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"{ 'font-size.px': size }"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

&lt;span class="c"&gt;&amp;lt;!-- After --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;[style]&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"{ 'font-size.px': size }"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For more, let us hear it from the creators Credits : &lt;a href="https://blog.angular.dev/announcing-angular-v21-57946c34f14b" rel="noopener noreferrer"&gt;Official Announcement 😄&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Changelog: &lt;a href="https://github.com/angular/angular/blob/main/CHANGELOG.md#2100-2025-11-19" rel="noopener noreferrer"&gt; Repository &lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>angular</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
    <item>
      <title>⭐ Angular 20 Features ⭐</title>
      <dc:creator>Sandeep Balachandran</dc:creator>
      <pubDate>Tue, 24 Nov 2026 09:35:50 +0000</pubDate>
      <link>https://dev.to/sandeepbalachandran/angular-20-features-3a44</link>
      <guid>https://dev.to/sandeepbalachandran/angular-20-features-3a44</guid>
      <description>&lt;p&gt;Hey there,&lt;/p&gt;

&lt;p&gt;Angular 20 is officially here! Well, not today. Back in May 28, 2025&lt;/p&gt;

&lt;p&gt;TL;DR 🙌&lt;/p&gt;

&lt;p&gt;✅ Signals APIs fully stabilized (&lt;code&gt;effect&lt;/code&gt;, &lt;code&gt;linkedSignal&lt;/code&gt;, &lt;code&gt;toSignal&lt;/code&gt;)&lt;/p&gt;

&lt;p&gt;✅ Incremental hydration &amp;amp; route-level rendering now stable&lt;/p&gt;

&lt;p&gt;✅ Zoneless moved to developer preview&lt;/p&gt;

&lt;p&gt;✅ New async APIs: &lt;code&gt;resource&lt;/code&gt;, streaming &amp;amp; &lt;code&gt;httpResource&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;✅ Chrome DevTools integration for Angular performance&lt;/p&gt;

&lt;p&gt;✅ Template HMR enabled by default&lt;/p&gt;

&lt;p&gt;✅ New template syntax improvements&lt;/p&gt;

&lt;p&gt;✅ Deprecation of &lt;code&gt;*ngIf&lt;/code&gt;, &lt;code&gt;*ngFor&lt;/code&gt;, &lt;code&gt;*ngSwitch&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;✅ Experimental Vitest support&lt;/p&gt;

&lt;h1&gt; How to update to version 20 &lt;/h1&gt;

&lt;p&gt;Visit &lt;a href="https://update.angular.io" rel="noopener noreferrer"&gt;update.angular.io&lt;/a&gt; for detailed information and guidance. To have the best update experience,&lt;/p&gt;

&lt;p&gt;Update to 20&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng update @angular/cli @angular/core
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In order to update your global angular,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm i -g @angular/cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;center&gt;&lt;h2&gt;&lt;u&gt;🔥 What’s in this release?&lt;/u&gt;&lt;/h2&gt;&lt;/center&gt;

&lt;h2&gt;
  
  
  ✅ Signals APIs fully stabilized
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Signals are now the core reactivity model in Angular&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Stable APIs include:
&lt;/h3&gt;

&lt;h3&gt;
  
  
  signal
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;signal&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@angular/core'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;signal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// read&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;count&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// 0&lt;/span&gt;

&lt;span class="c1"&gt;// update&lt;/span&gt;
&lt;span class="n"&gt;count&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// update based on previous value&lt;/span&gt;
&lt;span class="n"&gt;count&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;val&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;val&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  computed
&lt;/h3&gt;

&lt;p&gt;👉 Automatically recalculates when dependencies change&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;signal&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;computed&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@angular/core'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;price&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;signal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;quantity&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;signal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;computed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;price&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nf"&gt;quantity&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;total&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// 200&lt;/span&gt;

&lt;span class="n"&gt;price&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;total&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// 400 (auto updates)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  input
&lt;/h3&gt;

&lt;p&gt;👉 Signal-based inputs for components&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Component&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@angular/core'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nd"&gt;@Component&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;selector&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'app-child'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;template&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`Value: {{ value() }}`&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;ChildComponent&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  view queries
&lt;/h3&gt;

&lt;p&gt;👉 Reactive version of @ViewChild&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Component&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;viewChild&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;effect&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@angular/core'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nd"&gt;@Component&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;template&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`&amp;lt;button #btn&amp;gt;Click&amp;lt;/button&amp;gt;`&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;MyComponent&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;btn&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;viewChild&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'btn'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="nf"&gt;constructor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;effect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;btn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// access element reactively&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  effect
&lt;/h3&gt;

&lt;p&gt;👉 Runs whenever dependent signals change&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;signal&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;effect&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@angular/core'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;signal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nf"&gt;effect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Count changed:'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;count&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;count&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// logs: Count changed: 1&lt;/span&gt;
&lt;span class="n"&gt;count&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// logs again&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  linkedSignal
&lt;/h3&gt;

&lt;p&gt;👉 Like computed, but you can also set it&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;signal&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;linkedSignal&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@angular/core'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;firstName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;signal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Sandy'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;lastName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;signal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Dev'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;fullName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;linkedSignal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="sb"&gt;`${firstName()} ${lastName()}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;update&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;first&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;last&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;' '&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;firstName&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;first&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;lastName&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;last&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;fullName&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// Sandy Dev&lt;/span&gt;

&lt;span class="n"&gt;fullName&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'John Doe'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;firstName&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// John&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;lastName&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  &lt;span class="c1"&gt;// Doe&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  toSignal
&lt;/h3&gt;

&lt;p&gt;👉 Bridge between RxJS and Signals&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;toSignal&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@angular/core/rxjs-interop'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;interval&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'rxjs'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;counter&lt;/span&gt;$ &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;interval&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;counter&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;toSignal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;counter&lt;/span&gt;$&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;initialValue&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nf"&gt;effect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;counter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// updates every second&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;👉 New Async APIs (Experimental)&lt;/p&gt;

&lt;h3&gt;
  
  
  resource
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Handles async data reactively
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;userResource&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;resource&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;userId&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;loader&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`users/${request.id}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;✅ Incremental hydration &amp;amp; route-level rendering now stable&lt;/p&gt;

&lt;p&gt;⚡ Server-Side Rendering (Now Solid)&lt;br&gt;
👉 Incremental Hydration (Stable)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Hydrate UI parts only when needed&lt;/li&gt;
&lt;li&gt;Improves performance significantly
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;provideClientHydration&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;withIncrementalHydration&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;@defer (hydrate on viewport) {
  &lt;span class="nt"&gt;&amp;lt;shopping-cart/&amp;gt;&lt;/span&gt;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  ✅ New Control Flow Syntax
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Replaces *ngIf, *ngFor, and *ngSwitch.&lt;/li&gt;
&lt;li&gt;ngIf/ngFor/ngSwitch are deprecated
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;@if (isLoggedIn) {
  &lt;span class="nt"&gt;&amp;lt;dashboard&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
} @else {
  &lt;span class="nt"&gt;&amp;lt;login&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
}

@for (item of items; track item.id; 
      let i = $index; 
      let first = $first; 
      let last = $last; 
      let even = $even; 
      let odd = $odd) {

  &lt;span class="nt"&gt;&amp;lt;div&amp;gt;&lt;/span&gt;
    {{ i }} - {{ item.name }}

    @if (first) { &lt;span class="nt"&gt;&amp;lt;span&amp;gt;&lt;/span&gt;First&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt; }
    @if (last) { &lt;span class="nt"&gt;&amp;lt;span&amp;gt;&lt;/span&gt;Last&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt; }
    @if (even) { &lt;span class="nt"&gt;&amp;lt;span&amp;gt;&lt;/span&gt;Even&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt; }
    @if (odd) { &lt;span class="nt"&gt;&amp;lt;span&amp;gt;&lt;/span&gt;Odd&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt; }

  &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For more, let us hear it from the creators Credits : &lt;a href="https://blog.angular.dev/announcing-angular-v20-b5c9c06cf301" rel="noopener noreferrer"&gt;Official Announcement 😄&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Changelog: &lt;a href="https://github.com/angular/angular/blob/main/CHANGELOG.md#2000-2025-05-28" rel="noopener noreferrer"&gt; Repository &lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>angular</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
    <item>
      <title>⭐ Angular 19 Features ⭐</title>
      <dc:creator>Sandeep Balachandran</dc:creator>
      <pubDate>Tue, 24 Nov 2026 09:35:35 +0000</pubDate>
      <link>https://dev.to/sandeepbalachandran/angular-19-features-5afc</link>
      <guid>https://dev.to/sandeepbalachandran/angular-19-features-5afc</guid>
      <description>&lt;p&gt;Hey there,&lt;/p&gt;

&lt;p&gt;Angular 19 is officially here! Well not today. Back in November 19, 2024&lt;/p&gt;

&lt;p&gt;Following the massive momentum of v18, this release doubles down on performance, reactive patterns, and making "modern Angular" the default standard for everyone. 🚀✨&lt;/p&gt;

&lt;p&gt;TL;DR 🙌&lt;/p&gt;

&lt;p&gt;✅ Standalone APIs now default&lt;/p&gt;

&lt;p&gt;✅ Stable Zoneless Change Detection&lt;/p&gt;

&lt;p&gt;✅ Incremental hydration (developer preview)&lt;/p&gt;

&lt;p&gt;✅ Event replay enabled by default for SSR&lt;/p&gt;

&lt;p&gt;✅ Route-level rendering (SSR / CSR / Prerender)&lt;/p&gt;

&lt;p&gt;✅ Signals evolution with &lt;code&gt;linkedSignal&lt;/code&gt; and &lt;code&gt;resource&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;✅ HMR for styles (no page refresh)&lt;/p&gt;

&lt;p&gt;✅ New Angular Material features (Time picker, theming improvements)&lt;/p&gt;

&lt;p&gt;✅ More developer experience and CLI improvements&lt;/p&gt;

&lt;h1&gt; How to update to version 19&lt;/h1&gt;

&lt;p&gt;Visit &lt;a href="https://update.angular.io" rel="noopener noreferrer"&gt;update.angular.io&lt;/a&gt; for detailed information and guidance. To have the best update experience,&lt;/p&gt;

&lt;p&gt;Update to 19&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng update @angular/cli @angular/core
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In order to update your global angular,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm i -g @angular/cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;center&gt;&lt;h2&gt;&lt;u&gt;What’s in this release?&lt;/u&gt;&lt;/h2&gt;&lt;/center&gt;

&lt;h2&gt;
  
  
  ✅ Standalone APIs now default
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;In v19, the standalone flag in the @Component decorator now defaults to true. This means you no longer need to type it out for every new component!&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Impact: Less boilerplate and a flatter project structure.&lt;br&gt;
Legacy Support: If you still need NgModules, you must explicitly set standalone: false.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nd"&gt;@Component&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;selector&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'app-modern-comp'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="c1"&gt;// No 'standalone: true' needed anymore!&lt;/span&gt;
  &lt;span class="n"&gt;template&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`&amp;lt;h1&amp;gt;I am standalone by default&amp;lt;/h1&amp;gt;`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;ModernComponent&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ Stable Zoneless Change Detection
&lt;/h2&gt;

&lt;p&gt;After being experimental in v18, Zoneless is now production-ready. You can finally remove zone.js entirely to enjoy smaller bundles and better performance.&lt;/p&gt;

&lt;p&gt;To enable it, update your app.config.ts:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;appConfig&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ApplicationConfig&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;providers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="nf"&gt;provideZonelessChangeDetection&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="c1"&gt;// Now Stable!&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ Incremental hydration (developer preview)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Hydrate only parts of the UI when needed (lazy hydration)&lt;/li&gt;
&lt;li&gt;Uses &lt;a class="mentioned-user" href="https://dev.to/defer"&gt;@defer&lt;/a&gt; syntax&lt;/li&gt;
&lt;li&gt;Improves performance by reducing initial JS load
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;@defer (hydrate on viewport) {
  &lt;span class="nt"&gt;&amp;lt;shopping-cart/&amp;gt;&lt;/span&gt;
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ Event replay enabled by default for SSR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Captures user interactions before app is fully loaded&lt;/li&gt;
&lt;li&gt;Replays them after hydration&lt;/li&gt;
&lt;li&gt;Ensures better UX in SSR apps&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Route-level rendering (SSR / CSR / Prerender)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Define rendering strategy per route:&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Server-side (SSR)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Client-side (CSR)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Prerender&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;serverRouteConfig&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ServerRoute&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'/login'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;RenderMode&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Server&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'/dashboard'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;RenderMode&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Client&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'/**'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;RenderMode&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Prerender&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ Signals evolution with &lt;code&gt;linkedSignal&lt;/code&gt; and &lt;code&gt;resource&lt;/code&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Writable signal that depends on another signal&lt;/li&gt;
&lt;li&gt;Auto-updates when dependencies change
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;options&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;signal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'apple'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'banana'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'fig'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Choice defaults to the first option, but can be changed.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;choice&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;linkedSignal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;options&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;choice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// apple&lt;/span&gt;

&lt;span class="n"&gt;choice&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'fig'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;choice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// fig&lt;/span&gt;

&lt;span class="c1"&gt;// When options change, choice resets to the new default value.&lt;/span&gt;
&lt;span class="n"&gt;options&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'peach'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'kiwi'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;choice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// peach&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ HMR for styles (no page refresh)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Styles update instantly without page reload&lt;/li&gt;
&lt;li&gt;Template HMR is experimental&lt;/li&gt;
&lt;li&gt;Hot module replacement for styles is enabled by default in v19! To try HMR for templates use:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;NG_HMR_TEMPLATES&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1 ng serve

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;To disable this feature specify "hmr": false as a development server option, or alternatively use:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ng serve --no-hmr

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ New Angular Material features (Time picker, theming improvements)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One of the most popular feature requests, with more than 1.3k 👍 on GitHub, has been a time picker component for Angular Material
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;matInput&lt;/span&gt; &lt;span class="na"&gt;[matTimepicker]&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"picker"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;mat-timepicker-toggle&lt;/span&gt; &lt;span class="na"&gt;matIconSuffix&lt;/span&gt; &lt;span class="na"&gt;[for]&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"picker"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;mat-timepicker&lt;/span&gt; &lt;span class="na"&gt;#picker&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ More developer experience and CLI improvements
&lt;/h2&gt;

&lt;h3&gt;
  
  
  👉 Command-line environment variable declaration
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The most highly requested feature in the Angular CLI repository is enabling the ability to pass environment variables during build time.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Starting v19, you can use the --define flag to achieve this:&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ng build --define &lt;span class="s2"&gt;"apiKey='$API_KEY'"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Local variables in templates
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;With the new block syntax for the built-in control flow and deferrable views we designed a solution which meets developers needs for local template variable declaration.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="c"&gt;&amp;lt;!-- Use with a template variable referencing an element --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;#name&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;

@let greeting = 'Hello ' + name.value;

&lt;span class="c"&gt;&amp;lt;!-- Use with an async pipe --&amp;gt;&lt;/span&gt;
@let user = user$ | async;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For more let us hear it from the creators Credits : &lt;a href="https://blog.angular.dev/meet-angular-v19-7b29dfd05b84" rel="noopener noreferrer"&gt;Official Announcement 😄&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Changelog : &lt;a href="https://github.com/angular/angular/blob/main/CHANGELOG.md#1900-2024-11-19" rel="noopener noreferrer"&gt; Repository &lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>angular</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
    <item>
      <title>⭐Angular 18 Features ⭐</title>
      <dc:creator>Sandeep Balachandran</dc:creator>
      <pubDate>Thu, 23 May 2024 06:24:30 +0000</pubDate>
      <link>https://dev.to/sandeepbalachandran/angular-18-features-5ajm</link>
      <guid>https://dev.to/sandeepbalachandran/angular-18-features-5ajm</guid>
      <description>&lt;p&gt;Hey there,&lt;/p&gt;

&lt;p&gt;Version 18.0.0 is here and it has some great updates for Angular developers everywhere. 🎉🎉&lt;/p&gt;

&lt;h1&gt;
  
  
  TL;DR 🙌
&lt;/h1&gt;

&lt;p&gt;✅ Experimental support for zoneless change detection&lt;/p&gt;

&lt;p&gt;✅ Angular.dev is now the new home for Angular developers&lt;/p&gt;

&lt;p&gt;✅ Material 3, deferrable views, built-in control flow are now stable&lt;/p&gt;

&lt;p&gt;✅ Server-side rendering improvements such as i18n hydration support&lt;/p&gt;

&lt;p&gt;✅ More Additional features&lt;/p&gt;

&lt;h1&gt; How to update to version 18&lt;/h1&gt;

&lt;p&gt;Visit &lt;a href="https://update.angular.io" rel="noopener noreferrer"&gt;update.angular.io&lt;/a&gt; for detailed information and guidance. To have the best update experience,&lt;/p&gt;

&lt;p&gt;Update to 18&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng update @angular/cli @angular/core
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In order to update your global angular,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm i -g @angular/cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;center&gt;&lt;h2&gt;&lt;u&gt;What’s in this release?&lt;/u&gt;&lt;/h2&gt;&lt;/center&gt;
  

&lt;h2&gt;
  
  
  ✅ Evolving change detection
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;You can try the experimental zoneless support in Angular starting today! Add

&lt;code&gt;provideExperimentalZonelessChangeDetection&lt;/code&gt;

to your application bootstrap
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bootstrapApplication(App, {
  providers: [
    provideExperimentalZonelessChangeDetection()
  ]
}); 

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;After adding the provider, remove zone.js from your polyfills in angular.json&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Moving forward, zoneless opens many doors for developers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Improving composability for micro-frontends and interoperability with other frameworks&lt;/li&gt;
&lt;li&gt;Faster initial render and runtime&lt;/li&gt;
&lt;li&gt;Smaller bundle size and faster page loads&lt;/li&gt;
&lt;li&gt;More readable stack traces&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;&lt;p&gt;The best way to use zoneless in your components is with signals:&lt;br&gt;&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;

&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
@Component({
  ...
  template: `
    &amp;lt;h1&amp;gt;Hello from {{ name() }}!&amp;lt;/h1&amp;gt;
    &amp;lt;button (click)="handleClick()"&amp;gt;Go Zoneless&amp;lt;/button&amp;gt;
  `,
})
export class App {
  protected name = signal('Angular');

  handleClick() {
    this.name.set('Zoneless Angular');
  }
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;In the example above, clicking the button invokes the handleClick method, which updates the signal value and updates the UI. &lt;/li&gt;
&lt;li&gt;This works similarly to an application using zone.js, with few differences. &lt;/li&gt;
&lt;li&gt;With zone.js, Angular ran change detection any time application state might have changed. &lt;/li&gt;
&lt;li&gt;Without zones, Angular limits this checking to fewer triggers, such as signal updates. &lt;/li&gt;
&lt;li&gt;This change also includes a new scheduler with coalescing to avoid checking for changes multiple times consecutively.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ New home for Angular developers
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Today, angular.dev has became the official documentation website for Angular!&lt;/li&gt;
&lt;li&gt;On top of the new, modern look and feel you can find 

&lt;ul&gt;
&lt;li&gt;an interactive hands-on tutorial based on WebContainers, &lt;/li&gt;
&lt;li&gt;interactive playground with examples, &lt;/li&gt;
&lt;li&gt;improved search powered by Algolia, &lt;/li&gt;
&lt;li&gt;refreshed guides, &lt;/li&gt;
&lt;li&gt;simplified navigation&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;All requests to &lt;a href="https://angular.io/" rel="noopener noreferrer"&gt;angular.io&lt;/a&gt; now automatically redirect to &lt;a href="https://angular.dev/" rel="noopener noreferrer"&gt;angular.dev&lt;/a&gt;
&lt;/li&gt;

&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Stablilty Updates
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Material 3 is now stable!
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt; You can check it out right here 👉 &lt;a href="https://material.angular.io/" rel="noopener noreferrer"&gt;material.angular.io&lt;/a&gt; &lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Signal APIs in developer preview
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Find how to use the APIs in  signals guide &lt;a href="https://angular.dev/guide/signals" rel="noopener noreferrer"&gt;Guide&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Deferrable views are now stable
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Built-in control flow is now stable
&lt;/h3&gt;

&lt;h2&gt;
  
  
  ✅ Improvements in server-side rendering
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;one of the  main blockers to get even more people to take advantage of hydration was lack of i18n support&lt;/li&gt;
&lt;li&gt;i18n blocks is available in developer preview mode in Angular v18!&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Improved debugging experience
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Angular’s hydration process can be visulize in Angular DevTools. &lt;/li&gt;
&lt;li&gt;Next to each component you can find an icon representing the component’s hydration status. &lt;/li&gt;
&lt;li&gt;To preview which components Angular hydrated on the page you can also enable an overlay mode. &lt;/li&gt;
&lt;li&gt;If your app has any hydration errors, Angular DevTools will visualize them in the component explorer.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ More Additional features
&lt;/h2&gt;

&lt;h3&gt;
  
  
  👉 Specifying a fallback content for ng-content
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;In v18 specifying default content for ng-content is available
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@Component({
  selector: 'app-profile',
  template: `
    &amp;lt;ng-content select=".greeting"&amp;gt;Hello &amp;lt;/ng-content&amp;gt;

    &amp;lt;ng-content&amp;gt;Unknown user&amp;lt;/ng-content&amp;gt;
  `,
})
export class Profile {}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Now we can use the component:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;app-profile&amp;gt;
  &amp;lt;span class="greeting"&amp;gt;Good morning &amp;lt;/span&amp;gt;
&amp;lt;/app-profile&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Which will result in:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;span class="greeting"&amp;gt;Good morning &amp;lt;/span&amp;gt;
Unknown user
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  👉 Unified control state change events
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;FormControl, FormGroup and FormArray classes from Angular forms now expose a property called events, which allows you to subscribe to a stream of events for this form control.&lt;/li&gt;
&lt;li&gt; Using it you can track changes in value, touch state, pristine status, and the control status.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now you can use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const nameControl = new FormControl&amp;lt;string|null&amp;gt;('name', Validators.required);
nameControl.events.subscribe(event =&amp;gt; {
  // process the individual events
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  👉 Automating the migration to the application builder
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;In Angular v17 we announced “application builder” as stable and enabled it by default for new projects. &lt;/li&gt;
&lt;li&gt;Under the hood it uses Vite with esbuild to replace the previous webpack experience.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  👉 Route redirects as functions
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;To enable higher flexibility when dealing with redirects, in Angular v18 redirectTo now accepts a function which returns a string. &lt;/li&gt;
&lt;li&gt;For example, if you’d like to redirect to a route that depends on some runtime state you can implement a more complicated logic in a function:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const routes: Routes = [
  { path: "first-component", component: FirstComponent },
  {
    path: "old-user-page",
    redirectTo: ({ queryParams }) =&amp;gt; {
      const errorHandler = inject(ErrorHandler);
      const userIdParam = queryParams['userId'];
      if (userIdParam !== undefined) {
        return `/user/${userIdParam}`;
      } else {
        errorHandler.handleError(new Error('Attempted navigation to user page without user ID.'));
        return `/not-found`;
      }
    },
  },
  { path: "user/:userId", component: OtherComponent },
];
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  👉 TypeScript 5.4
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt; Angular updated the dependency on TypeScript letting you take advantage of all the latest TypeScript &lt;a href="https://devblogs.microsoft.com/typescript/announcing-typescript-5-4/" rel="noopener noreferrer"&gt;5.4 features!&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For more let us hear it from the creators&lt;/p&gt;

&lt;p&gt;Credits : &lt;a href="https://blog.angular.dev/angular-v18-is-now-available-e79d5ac0affe" rel="noopener noreferrer"&gt;Official Announcement 😄&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Changelog : &lt;a href="https://github.com/angular/angular/blob/master/CHANGELOG.md" rel="noopener noreferrer"&gt; Repository &lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>angular</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
    <item>
      <title>⭐Angular 17 Features ⭐</title>
      <dc:creator>Sandeep Balachandran</dc:creator>
      <pubDate>Thu, 23 May 2024 03:20:47 +0000</pubDate>
      <link>https://dev.to/sandeepbalachandran/angular-17-features-4mmo</link>
      <guid>https://dev.to/sandeepbalachandran/angular-17-features-4mmo</guid>
      <description>&lt;p&gt;Hey there,&lt;/p&gt;

&lt;p&gt;Version 17.0.0 is here and it has some great updates for Angular developers everywhere. 🎉🎉&lt;/p&gt;

&lt;h1&gt;
  
  
  TL;DR 🙌
&lt;/h1&gt;

&lt;p&gt;✅ Future-looking identity&lt;/p&gt;

&lt;p&gt;✅ Built-in control flow&lt;/p&gt;

&lt;p&gt;✅ Deferrable views&lt;/p&gt;

&lt;p&gt;✅ Revamped hybrid rendering experience&lt;/p&gt;

&lt;p&gt;✅ New @angular/ssr package&lt;/p&gt;

&lt;p&gt;✅ New lifecycle hooks&lt;/p&gt;

&lt;p&gt;✅ Vite and esbuild the default for new projects&lt;/p&gt;

&lt;p&gt;✅ Dependency injection debugging in DevTools&lt;/p&gt;

&lt;p&gt;✅ Improving Developer Experience&lt;/p&gt;

&lt;h1&gt; How to update to version 17&lt;/h1&gt;

&lt;p&gt;Visit &lt;a href="https://update.angular.io" rel="noopener noreferrer"&gt;update.angular.io&lt;/a&gt; for detailed information and guidance. To have the best update experience,&lt;/p&gt;

&lt;p&gt;Update to 17&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng update @angular/cli @angular/core
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In order to update your global angular,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm i -g @angular/cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;center&gt;&lt;h2&gt;&lt;u&gt;What’s in this release?&lt;/u&gt;&lt;/h2&gt;&lt;/center&gt;
  

&lt;h2&gt;
  
  
  ✅ Future-looking identity
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmf9i8us0lu4fuftx6kkn.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmf9i8us0lu4fuftx6kkn.gif" alt=" " width="600" height="431"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;With Angular 17, developers can now access an updated documentation platform hosted on &lt;a href="https://angular.dev/" rel="noopener noreferrer"&gt;angular.dev&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;The new website  has new structure, new guides, improved content, and built a platform for an interactive learning journey that will let you learn Angular and the Angular CLI at your own pace, directly in the browser.&lt;/li&gt;
&lt;li&gt;Currently it is in  beta  preview and planning to make it the default website for Angular in v18.&lt;/li&gt;
&lt;li&gt;Read more about it here 👉 &lt;a href="https://blog.angular.io/announcing-angular-dev-1e1205fa3039" rel="noopener noreferrer"&gt;Blog post&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Built-in control flow
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The built-in control flow is available in v17 under developer preview today!&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Angular 17 introduces a new block template syntax, enhancing the developer experience by offering powerful features &lt;/li&gt;
&lt;li&gt;A new block template syntax that gives you powerful features with simple, declarative APIs are released&lt;/li&gt;
&lt;li&gt;Under the hood, the Angular compiler transforms the syntax to efficient JavaScript instructions that could perform control flow, lazy loading, and more.&lt;/li&gt;
&lt;li&gt;The built-in control flow enables:

&lt;ul&gt;
&lt;li&gt;More ergonomic syntax that is closer to JavaScript, thus more intuitive requiring fewer documentation lookups&lt;/li&gt;
&lt;li&gt;Better type checking thanks to more optimal type narrowing&lt;/li&gt;
&lt;li&gt;It’s a concept that primarily exists at build-time, which reduces the runtime footprint (making it “disappearing”) which could drop your bundle size by up to 30 kilobytes and further improve your Core Web Vital scores&lt;/li&gt;
&lt;li&gt;It is automatically available in your templates without additional imports&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;h3&gt;
  
  
  ✅ Conditional statements
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;div&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="nx"&gt;ngIf&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;loggedIn; else anonymousUser&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nx"&gt;The&lt;/span&gt; &lt;span class="nx"&gt;user&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="nx"&gt;logged&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/div&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;ng&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;template&lt;/span&gt; &lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="nx"&gt;anonymousUser&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nx"&gt;The&lt;/span&gt; &lt;span class="nx"&gt;user&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="nx"&gt;not&lt;/span&gt; &lt;span class="nx"&gt;logged&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/ng-template&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With the built-in if statement, this condition will look like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;@if (loggedIn) {
  The user is logged in
} @else {
  The user is not logged in
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Being able to provide the content for &lt;a class="mentioned-user" href="https://dev.to/else"&gt;@else&lt;/a&gt; directly is a major simplification compared to the else clause of the legacy *ngIf alternative. &lt;/li&gt;
&lt;li&gt;The current control flow also makes it trivial to have &lt;a class="mentioned-user" href="https://dev.to/else"&gt;@else&lt;/a&gt; if, which historically has been impossible.&lt;/li&gt;
&lt;li&gt;The improved ergonomics is even more visible with *ngSwitch:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;[ngSwitch]=&lt;/span&gt;&lt;span class="s"&gt;"accessLevel"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;admin-dashboard&lt;/span&gt; &lt;span class="na"&gt;*ngSwitchCase=&lt;/span&gt;&lt;span class="s"&gt;"admin"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;moderator-dashboard&lt;/span&gt; &lt;span class="na"&gt;*ngSwitchCase=&lt;/span&gt;&lt;span class="s"&gt;"moderator"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;user-dashboard&lt;/span&gt; &lt;span class="na"&gt;*ngSwitchDefault&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;which with the built-in control flow turns into:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;@switch (accessLevel) {
  @case ('admin') { &lt;span class="nt"&gt;&amp;lt;admin-dashboard/&amp;gt;&lt;/span&gt; }
  @case ('moderator') { &lt;span class="nt"&gt;&amp;lt;moderator-dashboard/&amp;gt;&lt;/span&gt; }
  @default { &lt;span class="nt"&gt;&amp;lt;user-dashboard/&amp;gt;&lt;/span&gt; }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;The new control flow enables significantly better type-narrowing in the individual branches in &lt;a class="mentioned-user" href="https://dev.to/switch"&gt;@switch&lt;/a&gt; which is not possible in *ngSwitch.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  ✅ Built-in for loop
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;@for (user of users; track user.id) {
  {{ user.name }}
} @empty {
  Empty list of users
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;We often see performance problems in apps due to the lack of trackBy function in *ngFor. &lt;/li&gt;
&lt;li&gt;A few differences in &lt;a class="mentioned-user" href="https://dev.to/for"&gt;@for&lt;/a&gt; are that track is mandatory to ensure fast diffing performance. &lt;/li&gt;
&lt;li&gt;In addition, it’s way easier to use since it’s just an expression rather than a method in the component’s class. &lt;/li&gt;
&lt;li&gt;The built-in &lt;a class="mentioned-user" href="https://dev.to/for"&gt;@for&lt;/a&gt; loop also has a shortcut for collections with zero items via an optional &lt;a class="mentioned-user" href="https://dev.to/empty"&gt;@empty&lt;/a&gt; block.&lt;/li&gt;
&lt;li&gt;The &lt;a class="mentioned-user" href="https://dev.to/for"&gt;@for&lt;/a&gt; statement uses a new diffing algorithm and has more optimal implementation compared to *ngFor, which makes it up to 90% faster runtime for community framework benchmarks!&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Deferrable views
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Angular 17 introduces a concept known as deferrable views or &lt;a class="mentioned-user" href="https://dev.to/defer"&gt;@defer&lt;/a&gt; blocks&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Deferrable views are available in developer preview in v17&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Deferrable views bring performance and developer experience to the next level because they enable declarative and powerful deferred loading with unprecedented ergonomics.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;@defer (on viewport) {
  &lt;span class="nt"&gt;&amp;lt;comment-list/&amp;gt;&lt;/span&gt;
} @loading {
  Loading…
} @error {
  Loading failed :(
} @placeholder {
  &lt;span class="nt"&gt;&amp;lt;img&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"comments-placeholder.png"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;There’s a ton of complexity under the hood that Angular manages for you.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Deferrable views offer a few more triggers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;on idle — lazily load the block when the browser is not doing any heavy lifting&lt;/li&gt;
&lt;li&gt;on immediate — start lazily loading automatically, without blocking the browser&lt;/li&gt;
&lt;li&gt;on timer(&lt;time&gt;) — delay loading with a timer&lt;/time&gt;
&lt;/li&gt;
&lt;li&gt;on viewport and on viewport() — viewport also allows to specify a reference for an anchor element. When the anchor element is visible, Angular will lazily load the component and render it&lt;/li&gt;
&lt;li&gt;on interaction and on interaction() — enables you to initiate lazy loading when the user interacts with a particular element &lt;/li&gt;
&lt;li&gt;on hover and on hover() — triggers lazy loading when the user hovers an element&lt;/li&gt;
&lt;li&gt;when  — enables you to specify your own condition via a boolean expression&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;&lt;p&gt;Deferrable views also provide the ability to prefetch the dependencies ahead of rendering them.&lt;/p&gt;&lt;/li&gt;

&lt;li&gt;&lt;p&gt;Adding prefetching is as simple as adding a prefetch statement to the defer block and supports all the same triggers.&lt;br&gt;&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;

&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;@defer (on viewport; prefetch on idle) {
  &lt;span class="nt"&gt;&amp;lt;comment-list&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ Revamped hybrid rendering experience
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Angular 17 brings a revitalized hybrid rendering experience, offering robust server-side rendering (SSR) and static site generation (SSG) support&lt;/li&gt;
&lt;li&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ New @angular/ssr package
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Angular Universal repository is moved to the Angular CLI repository and made server-side rendering an even more integral part&lt;/li&gt;
&lt;li&gt;To add hybrid rendering support to your existing application run:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng add @angular/ssr
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ New lifecycle hooks
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;2 new life cycle hooks introduced in this release

&lt;ul&gt;
&lt;li&gt;afterRender — register a callback to be invoked each time the application finishes rendering&lt;/li&gt;
&lt;li&gt;afterNextRender — register a callback to be invoked the next time the application finishes rendering&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;Only the browser will invoke these hooks, which enables you to plug custom DOM logic safely directly inside your components.
&lt;h2&gt;
  
  
  ✅ Vite and esbuild the default for new projects&lt;/h2&gt;
&lt;/li&gt;



&lt;li&gt;esbuild plus Vite powered build experience is enabled by default for all new applications&lt;/li&gt;

&lt;li&gt;Benefits

&lt;ul&gt;
&lt;li&gt;A 67% improvement in build time.&lt;/li&gt;
&lt;li&gt;An 87% speed improvement with SSR and SSG.&lt;/li&gt;
&lt;li&gt;A lightweight and efficient build process.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Dependency injection debugging in DevTools
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;brand new debugging APIs are introduced that allow us to plug into the framework’s runtime and inspect the injector tree.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Based on these APIs we built an inspection user interface that allows you to preview the:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Dependencies of your components in the component inspector&lt;/li&gt;
&lt;li&gt;Injector tree and dependency resolution path&lt;/li&gt;
&lt;li&gt;Providers declared within the individual injectors&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Improving Developer Experience
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Input value transforms
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;A common pattern is having a component which receives a boolean input. &lt;/li&gt;
&lt;li&gt;This, however, sets constraints on how you can pass a value to such a component. &lt;/li&gt;
&lt;li&gt;For example if we have the following definition of an Expander component:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nd"&gt;Component&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;standalone&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;selector&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;my-expander&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;template&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`…`&lt;/span&gt;
&lt;span class="p"&gt;})&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Expander&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nd"&gt;Input&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="nx"&gt;expanded&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;boolean&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;and we try to use it as
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;my-expander&lt;/span&gt; &lt;span class="na"&gt;expanded&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;You’ll get an error that “string is not assignable to boolean”. &lt;/li&gt;
&lt;li&gt;Input value transforms allow you to fix this by configuring the input decorator:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nd"&gt;Component&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;standalone&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;selector&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;my-expander&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;template&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`…`&lt;/span&gt;
&lt;span class="p"&gt;})&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Expander&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nd"&gt;Input&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;transform&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;booleanAttribute&lt;/span&gt; &lt;span class="p"&gt;})&lt;/span&gt; &lt;span class="nx"&gt;expanded&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;boolean&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Style and styleUrls as strings
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Angular components support multiple stylesheets per component. &lt;/li&gt;
&lt;li&gt;However, the vast majority of cases when I want to style my components I create an array with a single element pointing to the inline styles or referencing an external stylesheet&lt;/li&gt;
&lt;li&gt;A new feature enables you to switch from
*
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@Component({
  styles: [`
    ...
  `]
})
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@Component({
  styleUrls: ['styles.css']
})

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;to the simpler and more logical&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@Component({
  styles:``
})
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@Component({
  styleUrl: 'styles.css'
})
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For more let us hear it from the creators&lt;/p&gt;

&lt;p&gt;Credits : &lt;a href="https://blog.angular.io/introducing-angular-v17-4d7033312e4b" rel="noopener noreferrer"&gt;Official Announcement 😄&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Changelog : &lt;a href="https://github.com/angular/angular/blob/master/CHANGELOG.md" rel="noopener noreferrer"&gt; Repository &lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>angular</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
    <item>
      <title>⭐Angular 16 Features ⭐</title>
      <dc:creator>Sandeep Balachandran</dc:creator>
      <pubDate>Thu, 23 May 2024 03:04:14 +0000</pubDate>
      <link>https://dev.to/sandeepbalachandran/angular-16-features-4jln</link>
      <guid>https://dev.to/sandeepbalachandran/angular-16-features-4jln</guid>
      <description>&lt;p&gt;Hey there,&lt;/p&gt;

&lt;p&gt;I know I am a little late at this point. Also It has been a long since I have posted something here. So here it goes.&lt;/p&gt;

&lt;p&gt;Version 16.0.0 is here and it has some great updates for Angular developers everywhere. 🎉🎉&lt;/p&gt;

&lt;h1&gt;
  
  
  TL;DR 🙌
&lt;/h1&gt;

&lt;p&gt;✅ New reactivity model &lt;/p&gt;

&lt;p&gt;✅ Angular Signals&lt;/p&gt;

&lt;p&gt;✅ Server-side rendering and hydration&lt;/p&gt;

&lt;p&gt;✅ Improved tooling for standalone components, directives, and pipes&lt;/p&gt;

&lt;p&gt;✅ Advancing developer tooling&lt;/p&gt;

&lt;p&gt;✅ Improving Developer Experience&lt;/p&gt;

&lt;h1&gt; How to update to version 16&lt;/h1&gt;

&lt;p&gt;Visit &lt;a href="https://update.angular.io" rel="noopener noreferrer"&gt;update.angular.io&lt;/a&gt; for detailed information and guidance. To have the best update experience,&lt;/p&gt;

&lt;p&gt;Update to 16&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng update @angular/cli @angular/core
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In order to update your global angular,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm i -g @angular/cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;center&gt;&lt;h2&gt;&lt;u&gt;What’s in this release?&lt;/u&gt;&lt;/h2&gt;&lt;/center&gt;

&lt;h2&gt;
  
  
  ✅ New reactivity model
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;As part of the v16 release Angular team share a developer preview of a brand new reactivity model for Angular which brings significant improvements to performance and developer experience&lt;/li&gt;
&lt;li&gt;It’s entirely backward compatible and interoperable with the current system, and enables:

&lt;ul&gt;
&lt;li&gt;Better run time performance by reducing the number of computations during change detection. &lt;/li&gt;
&lt;li&gt;Brings a simpler mental model for reactivity&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;h3&gt;
  
  
  👉 Signals
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;The Angular signals library allows you to define reactive values and express dependencies between them.&lt;/li&gt;
&lt;li&gt;A signal is a value with explicit change semantics. &lt;/li&gt;
&lt;li&gt;In Angular a signal is represented by a zero argument getter function returning the current signal value:&lt;/li&gt;
&lt;li&gt;Signals are fundamentally read-only: we can ask for the current value and observe change notification.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nd"&gt;Component&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;selector&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;my-app&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;standalone&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;template&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`
    {{ fullName() }} &amp;lt;button (click)="setName('John')"&amp;gt;Click&amp;lt;/button&amp;gt;
  `&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;})&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;App&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;firstName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;signal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Jane&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="nx"&gt;lastName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;signal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Doe&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="nx"&gt;fullName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;computed&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;firstName&lt;/span&gt;&lt;span class="p"&gt;()}&lt;/span&gt;&lt;span class="s2"&gt; &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;lastName&lt;/span&gt;&lt;span class="p"&gt;()}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

  &lt;span class="nf"&gt;constructor&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;effect&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Name changed:&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fullName&lt;/span&gt;&lt;span class="p"&gt;()));&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="nf"&gt;setName&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;newName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;firstName&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;newName&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;The snippet above creates a computed value fullName, which depends on the signals firstName and lastName. &lt;/li&gt;
&lt;li&gt;We also declare an effect, which callback will execute every time we change the value of any of the signals it reads — in this case fullName, which means it transitively also depends on firstName and lastName.&lt;/li&gt;
&lt;li&gt;When we set the value of firstName to ”John”, the browser will log into the console:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"Name changed: John Doe"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ Server-side rendering and hydration
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;In the new full app &lt;strong&gt;non-destructive hydration&lt;/strong&gt;, Angular no longer re-renders the application from scratch. &lt;/li&gt;
&lt;li&gt;Instead, the framework looks up existing DOM nodes while building internal data structures and attaches event listeners to those nodes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Features&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;No content flickering on a page for end users&lt;/li&gt;
&lt;li&gt;Better Web Core Vitals in certain scenarios&lt;/li&gt;
&lt;li&gt;Future-proof architecture that enables fine-grained code loading with primitives &lt;/li&gt;
&lt;li&gt;Easy integration with existing apps&lt;/li&gt;
&lt;li&gt;Incremental adoption of hydration with the

&lt;code&gt;ngSkipHydration&lt;/code&gt;

attribute in templates for components performing manual DOM manipulation&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;ul&gt;
&lt;li&gt;Non-destructive hydration is still at the developer preview stage. &lt;/li&gt;
&lt;li&gt;But you can enable it by adding provideClientHydration() as a provider when bootstrapping the application.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
 &lt;span class="nx"&gt;bootstrapApplication&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
 &lt;span class="nx"&gt;provideClientHydration&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@angular/platform-browser&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="p"&gt;...&lt;/span&gt;

&lt;span class="nf"&gt;bootstrapApplication&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;RootCmp&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
 &lt;span class="na"&gt;providers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nf"&gt;provideClientHydration&lt;/span&gt;&lt;span class="p"&gt;()]&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;You can find more details on how it works in the documentation right here 👉 &lt;a href="https://angular.io/guide/hydration" rel="noopener noreferrer"&gt;Hydration&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Improved tooling for standalone components, directives, and pipes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Angular 14 started supporting standalone components, which are independent of modules. &lt;/li&gt;
&lt;li&gt;Angular 16 takes this to the next level by supporting standalone project creation.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng new --standalone
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;You’ll get a simpler project output without any NgModules. &lt;/li&gt;
&lt;li&gt;Additionally, all the generators in the project will produce standalone directives, components, and pipes!&lt;/li&gt;
&lt;li&gt;Zone.js can be configured  with the new bootstrapApplication API.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;bootstrapApplication&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;App&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="na"&gt;providers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nf"&gt;provideZoneChangeDetection&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;eventCoalescing&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;})]&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ Advancing developer tooling
&lt;/h2&gt;

&lt;h3&gt;
  
  
  👉 Developer preview of the esbuild-based build system
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;In

&lt;code&gt;ng serve&lt;/code&gt;

angular now  using Vite for the development server, and esbuild powers both  development and production builds&lt;/li&gt;
&lt;li&gt; Angular CLI relies on Vite exclusively as a development server. &lt;/li&gt;
&lt;li&gt; To support selector matching, the Angular compiler needs to maintain a dependency graph between  components which requires a different compilation model than Vite.&lt;/li&gt;
&lt;li&gt;You can give Vite + esbuild a try by updating your angular.json:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="err"&gt;...&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nl"&gt;"architect"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"build"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;                     &lt;/span&gt;&lt;span class="err"&gt;/*&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;Add&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;the&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;esbuild&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;suffix&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="err"&gt;*/&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"builder"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"@angular-devkit/build-angular:browser-esbuild"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="err"&gt;...&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  👉 Better unit testing with Jest and Web Test Runner
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt; Jest is one of the most loved testing frameworks and test runners.&lt;/li&gt;
&lt;li&gt; Experimental Jest support is added with Angular 16. &lt;/li&gt;
&lt;li&gt;&lt;p&gt;Planning to move all the existing Karma projects to Web Test Runner in future updates.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You can experiment with Jest in new projects by installing Jest with&lt;br&gt;
&lt;br&gt;
&lt;code&gt;npm install jest --save-dev&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
and updating your  angular.json file&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"projects"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"my-app"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"architect"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"test"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"builder"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"@angular-devkit/build-angular:jest"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"options"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="nl"&gt;"tsConfig"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"tsconfig.spec.json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="nl"&gt;"polyfills"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"zone.js"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"zone.js/testing"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;More unit testing strategies can be found right here 👉 &lt;a href="https://blog.angular.io/moving-angular-cli-to-jest-and-web-test-runner-ef85ef69ceca" rel="noopener noreferrer"&gt;Blog Post&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  👉 Autocomplete imports in templates
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;The language service now allows auto-import components and pipes.&lt;/li&gt;
&lt;li&gt;In v16

&lt;code&gt;TypeScript 5.0&lt;/code&gt;

support is added, with support for

&lt;code&gt;ECMAScript decorators&lt;/code&gt;

, removing the overhead of

&lt;code&gt;ngcc&lt;/code&gt;

, adding support for

&lt;code&gt;service workers&lt;/code&gt;

and app shell in standalone apps, expanding CSP support in the CLI&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Improving Developer Experience
&lt;/h2&gt;

&lt;h3&gt;
  
  
  👉 Required inputs
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;In Angular 16, you can now define input values as required. &lt;/li&gt;
&lt;li&gt;You can either use the @Input decorator or the @Component decorator inputs array to define one.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nd"&gt;Component&lt;/span&gt;&lt;span class="p"&gt;(...)&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;App&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nd"&gt;Input&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;})&lt;/span&gt; &lt;span class="nx"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;string&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;''&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Passing router data as component inputs
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Now you can pass the following data to a routing component’s inputs

&lt;ul&gt;
&lt;li&gt;Route data — resolvers and data properties&lt;/li&gt;
&lt;li&gt;Path parameters&lt;/li&gt;
&lt;li&gt;Query parameters
*
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;routes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;about&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;loadComponent&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./about&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="na"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;contact&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;getContact&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;];&lt;/span&gt;

&lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nd"&gt;Component&lt;/span&gt;&lt;span class="p"&gt;(...)&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;About&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="c1"&gt;// The value of "contact" is passed to the contact input&lt;/span&gt;
  &lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nd"&gt;Input&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="nx"&gt;contact&lt;/span&gt;&lt;span class="p"&gt;?:&lt;/span&gt; &lt;span class="kr"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;You can enable this feature by using withComponentInputBinding as part of the provideRouter.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  👉 CSP support for inline-styles
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;The ngCspNonce attribute is useful if you have access to server-side templating that can add the nonce both to the header and the index.html when constructing the response.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;app&lt;/span&gt; &lt;span class="na"&gt;ngCspNonce=&lt;/span&gt;&lt;span class="s"&gt;"{% nonce %}"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/app&amp;gt;&lt;/span&gt;  
&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  👉 Self-closing tags
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;A highly requested feature we recently implemented allows you to use self-closing tags for components in Angular templates
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;super-duper-long-component-name&lt;/span&gt; &lt;span class="na"&gt;[prop]=&lt;/span&gt;&lt;span class="s"&gt;"someVar"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For more let us hear it from the creators&lt;/p&gt;

&lt;p&gt;Credits : &lt;a href="https://blog.angular.io/angular-v16-is-here-4d7a28ec680d" rel="noopener noreferrer"&gt;Official Announcement 😄&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Changelog : &lt;a href="https://github.com/angular/angular/blob/master/CHANGELOG.md" rel="noopener noreferrer"&gt; Repository &lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>angular</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
    <item>
      <title>⭐Angular 15 Features ⭐</title>
      <dc:creator>Sandeep Balachandran</dc:creator>
      <pubDate>Fri, 18 Nov 2022 13:55:34 +0000</pubDate>
      <link>https://dev.to/sandeepbalachandran/angular-15-features-22dc</link>
      <guid>https://dev.to/sandeepbalachandran/angular-15-features-22dc</guid>
      <description>&lt;p&gt;Hey there,&lt;/p&gt;

&lt;p&gt;Version 15.0.0 is here and it has some great updates for Angular developers everywhere. 🎉🎉&lt;/p&gt;

&lt;h1&gt;
  
  
  TL;DR 🙌
&lt;/h1&gt;

&lt;p&gt;✅ Simplifying Angular with Stable Standalone APIs&lt;/p&gt;

&lt;p&gt;✅ Router and HttpClient tree-shakable standalone APIs&lt;/p&gt;

&lt;p&gt;✅ Directive composition API&lt;/p&gt;

&lt;p&gt;✅ Image directive is now stable!&lt;/p&gt;

&lt;p&gt;✅ Router unwraps default imports&lt;/p&gt;

&lt;p&gt;✅ Better stack traces&lt;/p&gt;

&lt;p&gt;✅ Automatic imports in language service&lt;/p&gt;

&lt;p&gt;✅ Angular CLI enhancements&lt;/p&gt;

&lt;p&gt;✅ Deprecation &lt;/p&gt;

&lt;h1&gt; How to update to version 15&lt;/h1&gt;

&lt;p&gt;Visit &lt;a href="https://update.angular.io" rel="noopener noreferrer"&gt;update.angular.io&lt;/a&gt; for detailed information and guidance. To have the best update experience,&lt;/p&gt;

&lt;p&gt;Update to 15&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng update @angular/cli @angular/core
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In order to update your global angular,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm i -g @angular/cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;center&gt;&lt;h2&gt;&lt;u&gt;What’s in this release?&lt;/u&gt;&lt;/h2&gt;&lt;/center&gt;

&lt;h2&gt;
  
  
  ✅ Simplifying Angular with Stable Standalone API 👌
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://angular.io/guide/standalone-components" rel="noopener noreferrer"&gt;Angular standalone components&lt;/a&gt; aim to streamline the authoring of Angular applications by reducing the need for NgModules.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Standalone alone APIs are no longer in developer preview and are now part of the stable API surface&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import {bootstrapApplication} from '@angular/platform-browser';
import {ImageGridComponent} from'./image-grid';

@Component({
  standalone: true,
  selector: 'photo-gallery',
  imports: [ImageGridComponent],
  template: `
     &amp;lt;image-grid [images]="imageList"&amp;gt;&amp;lt;/image-grid&amp;gt;
  `,
})
export class PhotoGalleryComponent {
  // component logic
}
bootstrapApplication(PhotoAppComponent);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;p&gt;👉 In v14, standalone components are in &lt;strong&gt;developer preview&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;👉 They are not stable API yet and will be potentially changed. But available to exploration and development.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;As per the official announcement an example of usage can be found over &lt;a href="https://gist.githubusercontent.com/twerske/6fa8f71a37cf28a24c439e01325784a4/raw/ce2097de9bbf19c7d7125b88f708cf40f9352f34/main.ts" rel="noopener noreferrer"&gt;here&lt;/a&gt;. 👈&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅Router and HttpClient tree-shakable standalone APIs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;👉 It is possible to build a multi-route application using the new router standalone APIs
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import {Routes} from '@angular/router';

import {LazyComponent} from './lazy.component';

export const lazyRoutes: Routes = [{path: '', component: LazyComponent}];
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export const appRoutes: Routes = [{
  path: 'lazy',
  loadChildren: () =&amp;gt; import('./lazy/lazy.routes').then(routes =&amp;gt; routes.lazyRoutes)
}];
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Register the appRoutes in the bootstrapApplication call
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bootstrapApplication(AppComponent, {
  providers: [
    provideRouter(appRoutes)
  ]
});

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;👉 &lt;strong&gt;provideRouter&lt;/strong&gt; API is tree-shakable&lt;/li&gt;
&lt;li&gt;Bundlers can remove unused features of the router at build-time&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Directive composition API
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;👉 The directive composition API enables developers to enhance host elements with directives and equips Angular with a powerful code reuse strategy&lt;/li&gt;
&lt;li&gt;👉 &lt;strong&gt;The directive composition API only works with standalone directives&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;This feature was inspired by the most popular feature request on &lt;a href="https://github.com/angular/angular/issues/8785" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; asking for the functionality to add directives to a host element.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@Component({
  selector: 'mat-menu',
  hostDirectives: [HasColor, {
    directive: CdkMenu,
    inputs: ['cdkMenuDisabled: disabled'],
    outputs: ['cdkMenuClosed: closed']
  }]
})
class MatMenu {}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ Image directive is now stable!
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The v15 release also includes a few new features for the image directive&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;👉 &lt;strong&gt;Automatic srcset generation&lt;/strong&gt; 

&lt;ul&gt;
&lt;li&gt;The directive ensures that an appropriately sized image is requested by generating the srcset attribute for you. &lt;/li&gt;
&lt;li&gt;This can reduce download times for your images.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;👉 &lt;strong&gt;Fill mode [experimental]&lt;/strong&gt; 

&lt;ul&gt;
&lt;li&gt;This mode causes the image to fill its parent container, removing the requirement to declare the image’s width and height. &lt;/li&gt;
&lt;li&gt;It’s a handy tool if you don’t know the sizes of your images or if you’d like to migrate CSS background images to use the directive.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;/li&gt;

&lt;li&gt;&lt;p&gt;The standalone NgOptimizedImage directive can be used directly in the component or NgModule:&lt;br&gt;&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;

&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { NgOptimizedImage } from '@angular/common';

// Include it into the necessary NgModule
@NgModule({
  imports: [NgOptimizedImage],
})
class AppModule {}

// ... or a standalone Component
@Component({
  standalone: true
  imports: [NgOptimizedImage],
})
class MyStandaloneComponent {}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;To use it within a component just replace the image’s src attribute with ngSrc and make sure you specify the priority attribute for your LCP images&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Router unwraps default imports
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;To make the router simpler and reduce boilerplate further, the router now auto-unwraps default exports when lazy loading&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Before this change, to lazy load a standalone component&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  path: 'lazy',
  loadComponent: () =&amp;gt; import('./lazy-file').then(m =&amp;gt; m.LazyComponent),
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt; Now the router will look for a default export and if it finds it, use it automatically, which simplifies the route declaration to
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  path: 'lazy',
  loadComponent: () =&amp;gt; import('./lazy-file'),
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅ Better stack traces
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;More understandable stack errors &lt;/li&gt;
&lt;li&gt;👉 Instead of showing errors from third party dependencies error messages are more focused on code that developer has authored.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅Automatic imports in language service
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The language service now can automatically import components that you’re using in a template but haven’t added to a standalone component or an NgModule.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ CLI improvements
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Now you can generate a new standalone component via

&lt;code&gt;ng g component --standalone&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Deprecations
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;providedIn: 'any'&lt;/strong&gt; - The NgModule injector that receives the resolution.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;providedIn: NgModule&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Team will stop publishing new releases of @angular/flex-layout&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For more let us hear it from the creators&lt;/p&gt;

&lt;p&gt;Credits : &lt;a href="https://blog.angular.io/angular-v15-is-now-available-df7be7f2f4c8" rel="noopener noreferrer"&gt;Official Announcement 😄&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Changelog : &lt;a href="https://github.com/angular/angular/blob/master/CHANGELOG.md" rel="noopener noreferrer"&gt; Repository &lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>angular</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
    <item>
      <title>⭐Angular 14 Features ⭐</title>
      <dc:creator>Sandeep Balachandran</dc:creator>
      <pubDate>Fri, 03 Jun 2022 16:51:19 +0000</pubDate>
      <link>https://dev.to/sandeepbalachandran/angular-14-features-14ip</link>
      <guid>https://dev.to/sandeepbalachandran/angular-14-features-14ip</guid>
      <description>&lt;p&gt;Hey there,&lt;/p&gt;

&lt;p&gt;Version 14.0.0 is here and it has some great updates for Angular developers everywhere. 🎉🎉&lt;/p&gt;

&lt;h1&gt;
  
  
  TL;DR 🙌
&lt;/h1&gt;

&lt;p&gt;✅ &lt;strong&gt;Simplifying Angular with Standalone Components&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;✅ &lt;strong&gt;Typed Angular Forms&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;✅ Streamlined best practices&lt;/p&gt;

&lt;p&gt;✅ Extended developer diagnostics&lt;/p&gt;

&lt;p&gt;✅ Built-in improvements&lt;/p&gt;

&lt;p&gt;✅ Angular material component updates&lt;/p&gt;

&lt;p&gt;✅ Angular CLI enhancements&lt;/p&gt;

&lt;p&gt;✅ Docs Updated | Docs updating | Docs will be updated&lt;/p&gt;

&lt;h1&gt; How to update to version 14&lt;/h1&gt;

&lt;p&gt;Visit &lt;a href="https://update.angular.io" rel="noopener noreferrer"&gt;update.angular.io&lt;/a&gt; for detailed information and guidance. To have the best update experience,&lt;/p&gt;

&lt;p&gt;Update to 14&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng update @angular/cli @angular/core
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In order to update your global angular,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm i -g @angular/cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;center&gt;&lt;h2&gt;&lt;u&gt;What’s in this release?&lt;/u&gt;&lt;/h2&gt;&lt;/center&gt;

&lt;h2&gt;
  
  
  ✅ Simplifying Angular with Standalone Components 👌
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://angular.io/guide/standalone-components" rel="noopener noreferrer"&gt;Angular standalone components&lt;/a&gt; aim to streamline the authoring of Angular applications by reducing the need for NgModules.&lt;/li&gt;
&lt;li&gt;👉 In v14, standalone components are in &lt;strong&gt;developer preview&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;👉 They are not stable API yet and will be potentially changed. But available to exploration and development.&lt;/li&gt;
&lt;li&gt;As per the official announcement an example of usage can be found over &lt;a href="https://gist.githubusercontent.com/twerske/6fa8f71a37cf28a24c439e01325784a4/raw/ce2097de9bbf19c7d7125b88f708cf40f9352f34/main.ts" rel="noopener noreferrer"&gt;here&lt;/a&gt;. 👈&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqyzn2ah85uqca9kc951p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqyzn2ah85uqca9kc951p.png" alt="standalone compnoent" width="800" height="702"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;👉 In component decorator you are able to make directives and pipes standalone by  &lt;strong&gt;standalone: true&lt;/strong&gt; flag which allows you to add imports directly in your @Component() without an @NgModule()&lt;/li&gt;
&lt;li&gt;Explore &lt;a href="https://stackblitz.com/edit/angular-standalone?file=src%2Fmain.ts" rel="noopener noreferrer"&gt;stackblitz&lt;/a&gt; demo  👈  for more&lt;/li&gt;
&lt;li&gt;We can create standalone component using CLI as follows
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  ng generate component &amp;lt;name&amp;gt; --standalone

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✅Typed Angular Forms
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;👉 This feature was under the radar for a while now. The issue can be found &lt;a href="https://github.com/angular/angular/issues/13721" rel="noopener noreferrer"&gt;here&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;👉 Typed forms ensure that the values inside of form controls, groups, and arrays are type safe across the entire API surface. &lt;/li&gt;
&lt;li&gt;👉 This enables safer forms, especially for deeply nested complex cases.&lt;/li&gt;
&lt;li&gt;Official gist is available &lt;a href="https://gist.githubusercontent.com/twerske/4f9f18f748584abd8edc3e608482922d/raw/62a49a22d22cc7aa8318fbcf9e5166f129a233ed/typed-angular-forms.ts" rel="noopener noreferrer"&gt;here&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff7nl09r2bozpo0kym55s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff7nl09r2bozpo0kym55s.png" alt="Typed Angular Forms" width="800" height="639"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Motivation&lt;/strong&gt; behind typed angular forms can be found 👉 &lt;a href="https://github.com/angular/angular/discussions/44513" rel="noopener noreferrer"&gt;here&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Streamlined best practices
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;✅ 👉 Streamlined page title accessibility

&lt;ul&gt;
&lt;li&gt;It is a best practice to ensure that your app’s page titles uniquely communicate the page’s contents. &lt;/li&gt;
&lt;li&gt;v13.2 streamlines this with the new &lt;em&gt;Route.title&lt;/em&gt; property in the Angular Router. &lt;/li&gt;
&lt;li&gt;Adding a title now requires no additional imports and is strongly typed&lt;/li&gt;
&lt;li&gt;gist can be found &lt;a href="https://gist.github.com/twerske/16f4d998c5b87c589cd2b6ec015f8732/raw/f34ecd959b1b99764f235761e0d2e717bbcd5a37/app-routing.module.ts" rel="noopener noreferrer"&gt;here&lt;/a&gt;
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpeb4si656qffmyhv8cgf.png" alt="Streamlined page title accessibility" width="800" height="696"&gt;
&lt;/li&gt;
&lt;li&gt;In these examples, 

&lt;ul&gt;
&lt;li&gt;👉 navigating to ​​&lt;em&gt;‘/about’&lt;/em&gt; will set the document title to &lt;em&gt;‘My App — About Me’&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;👉 while navigating to &lt;em&gt;‘/home’&lt;/em&gt; will set the document title to &lt;em&gt;‘My App — Home’&lt;/em&gt;.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;/li&gt;

&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Extended developer diagnostics
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;New &lt;a href="https://angular.io/extended-diagnostics" rel="noopener noreferrer"&gt;extended diagnostics&lt;/a&gt; provide an extendable framework that gives you more insight into your templates and how you might be able to improve them. &lt;/li&gt;
&lt;li&gt;Diagnostics give compile-time warnings with precise, actionable suggestions for your templates, catching bugs before run-time.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  👉 Catch the invalid “Banana in a box” error on your two-way data bindings 👉 &lt;a href="https://github.com/angular/angular/discussions/44513" rel="noopener noreferrer"&gt;here&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://angular.io/extended-diagnostics/NG8101" rel="noopener noreferrer"&gt;Official Reference&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  👉 Catch nullish coalescing on non-nullable values 👉 &lt;a href="https://github.com/angular/angular/discussions/44513" rel="noopener noreferrer"&gt;here&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://angular.io/extended-diagnostics/NG8102" rel="noopener noreferrer"&gt;Official Refernce&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  👉 Tree-shakeable error messages
&lt;/h3&gt;

&lt;h2&gt;
  
  
  ✅ More built-in improvements
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bind to protected component members&lt;/strong&gt; - you can now bind to protected component members directly from your templates,&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Optional injectors in Embedded Views&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;NgModel OnPush&lt;/strong&gt; - NgModel changes are reflected in the UI for OnPush components.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Angular CLI enhancements
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt; Now every flag uses &lt;em&gt;--lower-skewer-case&lt;/em&gt; format&lt;/li&gt;
&lt;li&gt; Removed deprecated camel case arguments support and added support for combined aliases usage&lt;/li&gt;
&lt;li&gt; 👉 &lt;strong&gt;ng completion&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt; v14  introduces real-time type-ahead autocompletion for command such as &lt;em&gt;ng serve&lt;/em&gt;!&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt; 👉 &lt;strong&gt;ng analytics&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt; The CLI’s analytics command allows you to control analytics settings and print analytics information&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt; 👉 &lt;strong&gt;ng cache&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt; ng cache provides a way to control and print cache information from the command line. &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Angular DevTools is available offline and in Firefox
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The Angular DevTools debugging extension now supports offline use&lt;/li&gt;
&lt;li&gt; For Firefox users, find the extension in the &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/angular-devtools/" rel="noopener noreferrer"&gt;Add-ons for Mozilla&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Experimental ESM Application Build
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Finally, v14 introduces an experimental esbuild-based build system for ng build, which compiles pure ESM output.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For more let us hear it from the creators&lt;/p&gt;

&lt;p&gt;Credits : &lt;a href="https://blog.angular.io/angular-v14-is-now-available-391a6db736af" rel="noopener noreferrer"&gt;Official Announcement 😄&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Changelog : &lt;a href="https://github.com/angular/angular/blob/master/CHANGELOG.md" rel="noopener noreferrer"&gt; Repository &lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>angular</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
    <item>
      <title>⭐Angular 13 Features ⭐</title>
      <dc:creator>Sandeep Balachandran</dc:creator>
      <pubDate>Thu, 04 Nov 2021 07:18:50 +0000</pubDate>
      <link>https://dev.to/sandeepbalachandran/angular-13-features-5b1e</link>
      <guid>https://dev.to/sandeepbalachandran/angular-13-features-5b1e</guid>
      <description>&lt;p&gt;Hey there,&lt;/p&gt;

&lt;p&gt;Version 13.0.0 is here and it has some great updates for Angular developers everywhere. 🎉🎉&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR 🙌
&lt;/h2&gt;

&lt;p&gt;✅ &lt;strong&gt;View Engine is no longer available in Angular as of v13&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;✅ Changes to the Angular Package Format (APF)&lt;/p&gt;

&lt;p&gt;✅ &lt;strong&gt;Component API updates&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;✅ End of IE11 support&lt;/p&gt;

&lt;p&gt;✅ Improvements to the Angular CLI&lt;/p&gt;

&lt;p&gt;✅ Framework changes and dependency updates ( &lt;strong&gt;TypeScript 4.4&lt;/strong&gt;, &lt;strong&gt;Rxjs 7.4&lt;/strong&gt;)&lt;/p&gt;

&lt;p&gt;✅ Improvements to Angular tests&lt;/p&gt;

&lt;p&gt;✅ Angular material component updates&lt;/p&gt;

&lt;p&gt;✅ PR merges from community&lt;/p&gt;

&lt;p&gt;✅ Docs Updated | Docs updating | Docs will be updated&lt;/p&gt;

&lt;h1&gt; How to update to version 13&lt;/h1&gt;

&lt;p&gt;Visit &lt;a href="https://update.angular.io" rel="noopener noreferrer"&gt;update.angular.io&lt;/a&gt; for detailed information and guidance. To have the best update experience,&lt;/p&gt;

&lt;p&gt;Update to 13&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng update @angular/cli @angular/core
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In order to update your global angular,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm i -g @angular/cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;center&gt;&lt;h2&gt;&lt;u&gt;What’s in this release?&lt;/u&gt;&lt;/h2&gt;&lt;/center&gt;

&lt;h2&gt;
  
  
  ✅ Ivy is the default engine available in  v13 👌
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The Angular team already mentioned they will be removing View Engine from future major releases.&lt;/li&gt;
&lt;li&gt;Read about this from Minko Gechev right &lt;a href="https://blog.angular.io/upcoming-improvements-to-angular-library-distribution-76c02f782aa4" rel="noopener noreferrer"&gt;here&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;👉 Removing View Engine also means that Angular can reduce its reliance on ngcc &lt;a href="https://angular.io/guide/glossary#ngcc" rel="noopener noreferrer"&gt;(Angular compatibility compiler)&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Changes to the Angular Package Format (APF)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt; 👉 Libraries built with the latest version of the APF ( &lt;a href="https://angular.io/guide/angular-package-format" rel="noopener noreferrer"&gt;Angular package format&lt;/a&gt;) will no longer require the use of ngcc because of standardization on more modern JS formats such as ES2020.&lt;/li&gt;
&lt;li&gt; As a result of these changes library developers can expect leaner package output and faster execution&lt;/li&gt;
&lt;li&gt; Removed older output formats, including View Engine specific metadata from APF in v13&lt;/li&gt;
&lt;li&gt; update in APF to support Node Package Exports which help developers from inadvertently relying on internal APIs that may change.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Component API update
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Before the changes in Angular v13, dynamically creating components required a lot of boilerplate code.&lt;/li&gt;
&lt;li&gt;👉 The new API removes the need for &lt;a href="https://angular.io/api/core/ComponentFactoryResolver" rel="noopener noreferrer"&gt;ComponentFactoryResolver&lt;/a&gt; being injected into the constructor. &lt;/li&gt;
&lt;li&gt;👉 Ivy creates the opportunity to instantiate the component with &lt;a href="https://angular.io/api/core/ViewContainerRef#createComponent" rel="noopener noreferrer"&gt;ViewContainerRef.createComponent&lt;/a&gt; without creating an associated factory.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Creating components with previous versions of Angular
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxp6i32e757rdso7bpmam.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxp6i32e757rdso7bpmam.png" alt="Creating components v12" width="800" height="794"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  With the new API, this code can become:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft3rx7um7er85r80mrsyi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft3rx7um7er85r80mrsyi.png" alt="Creating components v13" width="800" height="636"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  ✅ End of IE11 support 🎉
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;This allows Angular to leverage modern browser features such as &lt;strong&gt;CSS variables and web animations via native web APIs&lt;/strong&gt;. &lt;/li&gt;
&lt;li&gt;👉 Apps will be smaller and load faster because we can remove &lt;strong&gt;IE specific polyfills and code paths&lt;/strong&gt;. &lt;/li&gt;
&lt;li&gt;It also removes the need for &lt;a href="https://angular.io/guide/deployment#differential-loading" rel="noopener noreferrer"&gt;differential loading&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Running ng update will automatically drop these IE-specific polyfills and reduce bundle size during project migration&lt;/li&gt;
&lt;li&gt;👉 Developers who still need to support IE11 users for existing projects can continue to use Angular v12 and it will be supported until &lt;a href="https://angular.io/guide/releases#support-policy-and-schedule" rel="noopener noreferrer"&gt;November 2022&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Improvements to the Angular CLI
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;👉 Angular now supports the use of persistent build cache by default for new v13 projects. Read it &lt;a href="https://github.com/angular/angular-cli/issues/21545" rel="noopener noreferrer"&gt;here&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;To enable this features developers can add this configuration to &lt;code&gt;angular.json&lt;/code&gt;:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz92061lf28qwjremday6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz92061lf28qwjremday6.png" alt="angular.json config" width="800" height="572"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Read more about it &lt;a href="https://next.angular.io/cli/cache" rel="noopener noreferrer"&gt;here&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Framework changes and dependency update
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;👉 Support for &lt;strong&gt;TypeScript 4.4&lt;/strong&gt; . Read it &lt;a href="https://devblogs.microsoft.com/typescript/announcing-typescript-4-4/" rel="noopener noreferrer"&gt;here&lt;/a&gt; 🎉&lt;/li&gt;
&lt;li&gt;👉 &lt;strong&gt;RxJS 7.4&lt;/strong&gt; is now the default for v13&lt;/li&gt;
&lt;li&gt;Existing apps using RxJS v6.x will have to manually update using the &lt;code&gt;npm install rxjs@7.4&lt;/code&gt; command. Migration instructions can be read it &lt;a href="https://rxjs.dev/6-to-7-change-summary" rel="noopener noreferrer"&gt;here&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;From angular 11 support for inline google font was introduced
&lt;/li&gt;
&lt;li&gt;👉 Now in v13 support extended to Adobe Fonts&lt;/li&gt;
&lt;li&gt;Inlining fonts can improve your app performance by speeding up the First Contentful Paint &lt;a href="https://web.dev/first-contentful-paint/" rel="noopener noreferrer"&gt;(FCP)&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;This change is now enabled for everyone by default! All you need to do is &lt;code&gt;ng update&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Improvements to Angular test
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;👉 TestBed that now does a better job of tearing down test modules and environments after each test&lt;/li&gt;
&lt;li&gt;The DOM is now cleaned after every test and developers can expect faster, less memory-intensive, less interdependent, and more optimized tests
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Angular material component updates
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;All the MDC-based components have been evaluated to meet elevated a11y standards on areas such as contrast, touch targets, ARIA, and more&lt;/li&gt;
&lt;li&gt;👉 Pull requests regarding Accessibility (a11y) standard can be read &lt;a href="https://github.com/angular/components/pulls?q=is%3Apr+is%3Aclosed+label%3Aa11y" rel="noopener noreferrer"&gt;here&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ PR merges from community
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;👉 Dynamically enable/disable validators - &lt;a href="https://github.com/angular/angular/pull/42565" rel="noopener noreferrer"&gt;#42565&lt;/a&gt; 🎉&lt;/li&gt;
&lt;li&gt;👉 Making the SwUpdate API a little more ergonomic - &lt;a href="https://github.com/angular/angular/pull/43668" rel="noopener noreferrer"&gt;#43668&lt;/a&gt; 🎉&lt;/li&gt;
&lt;li&gt;👉 Language Service config to enable auto-apply optional chaining on nullable symbol - &lt;a href="https://github.com/angular/vscode-ng-language-service/pull/1469" rel="noopener noreferrer"&gt;#1469&lt;/a&gt; 🎉&lt;/li&gt;
&lt;li&gt;👉 Router emit activate/deactivate events when an outlet gets attached/detached - &lt;a href="https://github.com/angular/angular/pull/43333" rel="noopener noreferrer"&gt;#4333&lt;/a&gt; 🎉&lt;/li&gt;
&lt;li&gt;👉 Restore history after canceled navigation - &lt;a href="https://github.com/angular/angular/pull/38884" rel="noopener noreferrer"&gt;#38884&lt;/a&gt;     🎉

&lt;ul&gt;
&lt;li&gt;   Router flag to restore the computed value of the browser history when set to computed
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwwcdfxy5fu3s2cbhkw5h.png" alt="routing changes" width="800" height="335"&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;For more let us hear it from the creators&lt;/p&gt;

&lt;p&gt;Credits : &lt;a href="https://blog.angular.io/angular-v13-is-now-available-cce66f7bc296" rel="noopener noreferrer"&gt;Official Announcement 😄&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Changelog : &lt;a href="https://github.com/angular/angular/blob/master/CHANGELOG.md" rel="noopener noreferrer"&gt; Repository &lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>angular</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
    <item>
      <title>🤷‍♂️ How to build and deploy angular application to surge using github actions</title>
      <dc:creator>Sandeep Balachandran</dc:creator>
      <pubDate>Sun, 24 Oct 2021 15:02:14 +0000</pubDate>
      <link>https://dev.to/sandeepbalachandran/how-to-build-and-deploy-angular-application-to-surge-using-github-actions-38h9</link>
      <guid>https://dev.to/sandeepbalachandran/how-to-build-and-deploy-angular-application-to-surge-using-github-actions-38h9</guid>
      <description>&lt;p&gt;Hey there, 🖐&lt;/p&gt;

&lt;p&gt;Suppose you have an angular application and need to automate building and deployment also you are looking for how to do it. &lt;/p&gt;

&lt;p&gt;You are in the right place.&lt;/p&gt;

&lt;h2&gt;
  
  
  Requirements
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;👉 Angular application&lt;/li&gt;
&lt;li&gt;👉 Github account&lt;/li&gt;
&lt;li&gt;👉 surge token and domain name&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Prerequisite
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;👉 Push your application to github repo&lt;/li&gt;
&lt;li&gt;👉 Add a  folder .github/workflows/ in the root location and create a file with an extension of yml inside of it . Lets say (deplyment.yml) ( .github/workflows/)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  ✅ Add name for your workflow
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;  &lt;span class="na"&gt;name &lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Build and Deploy&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;If you omit name inside the workflow file, GitHub will set workflow name to the workflow file path relative to the root of the repository.&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  ✅ Setup trigger
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;A workflow trigger is required for a workflow. We need to provide event that trigger the workflow&lt;/li&gt;
&lt;li&gt;Read more about it right &lt;a href="https://docs.github.com/en/actions/reference/events-that-trigger-workflows" rel="noopener noreferrer"&gt;here&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;push&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;branches&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;master'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;So on pushing the master branch. Change as you want.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  ✅ Create angular build
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;In GitHub Actions, jobs are defined by a series of steps that are executed on a runner.&lt;/li&gt;
&lt;li&gt;Each job runs on a different workspace, meaning that files and job side effects are not kept between jobs.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;build&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Build&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The latest version of Ubuntu GitHub-hosted runner is utilized for this job&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Jobs will not pull  the source code by default, you need to explicitly tell the job to do so&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Checkout&lt;/span&gt;
  &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/checkout@v1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;This action checks-out your repository , so your workflow can access it. More about actions/checout@v1 right &lt;a href="https://github.com/actions/checkout" rel="noopener noreferrer"&gt;here&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  ✅ Setup Node.js
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Use Node 12.x&lt;/span&gt;
  &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/setup-node@v1&lt;/span&gt;
  &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;node-version&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;12.x'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;This action sets by node environment for use in actions by:

&lt;ul&gt;
&lt;li&gt;Optionally downloading and caching a version of node - npm by version spec and add to PATH&lt;/li&gt;
&lt;li&gt;Registering problem matchers for error output&lt;/li&gt;
&lt;li&gt;Configuring authentication for GPR or npm&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;Read it &lt;a href="https://github.com/actions/setup-node" rel="noopener noreferrer"&gt;here&lt;/a&gt;
&lt;/li&gt;

&lt;/ul&gt;

&lt;h3&gt;
  
  
  ✅ Run build
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Install dependencies&lt;/span&gt;
  &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npm install&lt;/span&gt;
&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Build&lt;/span&gt;
  &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npm run build&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  ✅ Upload artifact
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;To expose the results of the current job to the next job, we can configure build  job to upload the build artifacts
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Archive build&lt;/span&gt;
  &lt;span class="na"&gt;if&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;success()&lt;/span&gt;
  &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/upload-artifact@v1&lt;/span&gt;
  &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;deploy_dist&lt;/span&gt;
    &lt;span class="na"&gt;path&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;dist&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;if: success() is used to make sure upload artifact only runs if all the previous steps passed&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  ✅ Create Deploy Job
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;deploy&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
  &lt;span class="na"&gt;needs&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;build&lt;/span&gt;
  &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Checkout&lt;/span&gt;
        &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/checkout@v1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;needs: build is used to tell GitHub to only execute deploy job when build and test job completed successfully.&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  ✅ Download build artifact
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Download build&lt;/span&gt;
  &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/download-artifact@v1&lt;/span&gt;
  &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;deploy_dist&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  ✅ Install surge
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Install surge a&lt;/span&gt;
    &lt;span class="s"&gt;uses&lt;/span&gt;&lt;span class="err"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/setup-node@v1&lt;/span&gt;
    &lt;span class="s"&gt;with&lt;/span&gt;&lt;span class="err"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;node-version&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;12.x'&lt;/span&gt;
        &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npm install -g surge&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  ✅ Deployment
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;surge ./deploy_dist/projectname ${{ secrets.SURGE_DOMAIN }} --token ${{ secrets.SURGE_TOKEN }}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  SURGE_DOMAIN
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;DOMAIN_NAME - Set the secret in settings -&amp;gt; Secrets -&amp;gt; New repository secret&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  SURGE_TOKEN
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;TOKEN -  Set the secret in settings -&amp;gt; Secrets -&amp;gt; New repository secret&lt;/li&gt;
&lt;/ul&gt;

&lt;h5&gt;
  
  
  Type in terminal as follows to get surge token
&lt;/h5&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;surge token
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  ✅ Conclusion
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Build and Deploy&lt;/span&gt;

&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;push&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;branches&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;master'&lt;/span&gt;

&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;build&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Build and Test&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Checkout&lt;/span&gt;
        &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/checkout@v2&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Use Node 12.x&lt;/span&gt;
        &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/setup-node@v1&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;node-version&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;12.x'&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Install dependencies&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npm install&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Build&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npm run build&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Archive build&lt;/span&gt;
        &lt;span class="na"&gt;if&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;success()&lt;/span&gt;
        &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/upload-artifact@v1&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;deploy_dist&lt;/span&gt;
          &lt;span class="na"&gt;path&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;dist&lt;/span&gt;
  &lt;span class="na"&gt;deploy&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;needs&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;build&lt;/span&gt;
    &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Deploying to surge&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/checkout@v2&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Download build&lt;/span&gt;
        &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/download-artifact@v1&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;deploy_dist&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Install surge and fire deployment&lt;/span&gt;
        &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/setup-node@v1&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;node-version&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;12.x'&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npm install -g surge&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;surge ./deploy_dist/projectname ${{ secrets.SURGE_DOMAIN }} --token ${{ secrets.SURGE_TOKEN }}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>devops</category>
      <category>angular</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
    <item>
      <title>⭐Angular 12 Now Available ⭐</title>
      <dc:creator>Sandeep Balachandran</dc:creator>
      <pubDate>Thu, 13 May 2021 05:39:44 +0000</pubDate>
      <link>https://dev.to/sandeepbalachandran/angular-12-now-available-1004</link>
      <guid>https://dev.to/sandeepbalachandran/angular-12-now-available-1004</guid>
      <description>&lt;p&gt;Hey there,&lt;/p&gt;

&lt;p&gt;Version 12.0.0 is here and it has some great updates for Angular developers everywhere. 🎉🎉&lt;/p&gt;

&lt;h1&gt;
  
  
  TL;DR 🙌
&lt;/h1&gt;

&lt;p&gt;✅ &lt;strong&gt;Moving closer to IVY engine and get rid of view engine&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;✅ Getting rid of protractor. Adding support to Cypress, WebdriverIO, and TestCafe&lt;/p&gt;

&lt;p&gt;✅ &lt;strong&gt;Nullish Coalescing in templates&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;✅ Docs Updated | Docs updating | Docs will be updated&lt;/p&gt;

&lt;p&gt;✅ Stylish improvements&lt;/p&gt;

&lt;p&gt;✅ Strict mode by default&lt;/p&gt;

&lt;p&gt;✅ Ivy-based Language Service&lt;/p&gt;

&lt;p&gt;✅ Experimental support for Webpack 5&lt;/p&gt;

&lt;p&gt;✅ supporting TypeScript version to 4.2 ( 4.3 is in beta)&lt;/p&gt;

&lt;p&gt;✅ Bye bye IE11 - New deprecation warning message in Angular v12 — and remove support for IE11 in Angular v13&lt;/p&gt;

&lt;p&gt;✅ PR merges from community&lt;/p&gt;

&lt;h1&gt; How to update to version 12&lt;/h1&gt;

&lt;p&gt;Visit &lt;a href="https://update.angular.io" rel="noopener noreferrer"&gt;update.angular.io&lt;/a&gt; for detailed information and guidance. To have the best update experience,&lt;/p&gt;

&lt;p&gt;Update to 12&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng update @angular/cli @angular/core
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In order to update your global angular,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm i -g @angular/cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  What’s in this release?
&lt;/h1&gt;

&lt;h2&gt;
  
  
  ✅ Moving closer to IVY engine 👌
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;View Engine is basically deprecated, it will be removed in a future major release&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;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.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;👉 Read about this from &lt;a href="https://blog.angular.io/upcoming-improvements-to-angular-library-distribution-76c02f782aa4" rel="noopener noreferrer"&gt;Minko Gechev&lt;/a&gt;  right &lt;a href="https://blog.angular.io/upcoming-improvements-to-angular-library-distribution-76c02f782aa4" rel="noopener noreferrer"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  ✅ Goodbye to Protractor
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;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&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;New things to learn 🎉🎉&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Nullish Coalescing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;We can use nullish coalescing in angular components
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0eet0uiqhiswdmd5pbje.png" alt="nullish" width="800" height="343"&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  ✅ Documentation updates
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;👉 &lt;a href="https://v12.angular.io/guide/content-projection" rel="noopener noreferrer"&gt;Content projection guide&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;👉 &lt;a href="https://angular.io/guide/contributors-guide-overview" rel="noopener noreferrer"&gt;Contriubtors guide&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;👉 &lt;a href="https://blog.angular.io/angular-debugging-guides-dfe0ef915036" rel="noopener noreferrer"&gt;Guides and videos&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Stylish Improvements
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Angular components will now support inline Sass . Previously, Sass was only available in external resources due to the Angular compiler&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;To enable this feature in your existing applications add&lt;br&gt;
&lt;br&gt;
&lt;code&gt;"inlineStyleLanguage": "scss”&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
to angular.json. Otherwise, it will be available to new projects using SCSS&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  In the v11.2 release,  added support for Tailwind CSS.
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;install the tailwindcss package from npm &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;initialize Tailwind to create the &lt;code&gt;tailwind.config.js&lt;/code&gt;in your project. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now, teams are ready to start using Tailwind in Angular.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Great Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;👉&lt;code&gt; ng build &lt;/code&gt; now defaults to production which saves teams some extra steps and helps to prevent accidental development builds in production . ng build === ng build --prod&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;👉 Strict mode is enabled by default in the CLI&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;👉 The Ivy-based Language Service is moving from opt-in to on by default&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;👉 Added experimental support for Webpack 5&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;👉  Updating the supported TypeScript version to 4. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Bye Bye IE11
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;👉 New IE11 deprecation warning message in Angular v12 — and remove support for IE11 in Angular v13&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✅ Multiple code merges
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;👉 &lt;a href="https://github.com/angular/angular/pull/25839" rel="noopener noreferrer"&gt;#25839&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;👉 &lt;a href="https://github.com/angular/angular/pull/25751" rel="noopener noreferrer"&gt;#25751&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;👉 &lt;a href="https://github.com/angular/angular/pull/39063" rel="noopener noreferrer"&gt;#39063&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;👉 &lt;a href="https://github.com/angular/angular/pull/33222" rel="noopener noreferrer"&gt;#33222&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For more let us hear it from the creators&lt;/p&gt;

&lt;p&gt;Credits : &lt;a href="https://blog.angular.io/angular-v12-is-now-available-32ed51fbfd49" rel="noopener noreferrer"&gt;Official Announcement 😄&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>angular</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
