<?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: Dionis Dimcea</title>
    <description>The latest articles on DEV Community by Dionis Dimcea (@dionisd).</description>
    <link>https://dev.to/dionisd</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1205238%2F2cd45fa4-aa01-4f54-b435-64a8c3048059.png</url>
      <title>DEV Community: Dionis Dimcea</title>
      <link>https://dev.to/dionisd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dionisd"/>
    <language>en</language>
    <item>
      <title>Angular @switch</title>
      <dc:creator>Dionis Dimcea</dc:creator>
      <pubDate>Wed, 08 Nov 2023 17:47:47 +0000</pubDate>
      <link>https://dev.to/dionisd/angular-switch-3754</link>
      <guid>https://dev.to/dionisd/angular-switch-3754</guid>
      <description>&lt;h2&gt;
  
  
  Angular has released the new '@switch' block syntax similar to Javascript
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;How does this work?&lt;/em&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--OpwbWYzJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9w9429iezeav3wy0dft8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--OpwbWYzJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9w9429iezeav3wy0dft8.png" alt="Angular ngSwitch Alternative" width="426" height="388"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The &lt;code&gt;@switch&lt;/code&gt; blocks displays content selected by one of the cases matching against the conditional expression&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The &lt;code&gt;@default&lt;/code&gt; block is optional and can be omitted. If no &lt;code&gt;@case&lt;/code&gt; matches the expression and there is no &lt;code&gt;@default&lt;/code&gt; block, nothing is shown&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;@switch&lt;/code&gt; does not have fallthrough, so you do not need an equivalent to a break or return statement.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://angular.dev/api/core/@switch"&gt;Angular docs&lt;/a&gt;&lt;/p&gt;

</description>
      <category>angular</category>
      <category>angular17</category>
      <category>typescript</category>
      <category>ngswitch</category>
    </item>
    <item>
      <title>Angular @for</title>
      <dc:creator>Dionis Dimcea</dc:creator>
      <pubDate>Wed, 08 Nov 2023 17:30:28 +0000</pubDate>
      <link>https://dev.to/dionisd/angular-for-ad4</link>
      <guid>https://dev.to/dionisd/angular-for-ad4</guid>
      <description>&lt;h2&gt;
  
  
  Angular has released the new '@IF' block syntax similar to Javascript
&lt;/h2&gt;

&lt;p&gt;How does this work?&lt;br&gt;
&lt;code&gt;@For&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Similar to JavaScript’s &lt;code&gt;for...of&lt;/code&gt; loops, Angular provides the &lt;code&gt;@for&lt;/code&gt; block for rendering repeated elements.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Rds34bPl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/83z6h7jo5xpzimgrux0y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Rds34bPl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/83z6h7jo5xpzimgrux0y.png" alt="Angular ngFor Alternative" width="439" height="238"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--T43y6IM7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qjnxpf0ynr9afo1ievmr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--T43y6IM7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qjnxpf0ynr9afo1ievmr.png" alt="Angular ngFor Alternative" width="549" height="101"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You might've noticed that there's additional &lt;code&gt;track&lt;/code&gt; keyword.&lt;br&gt;
&lt;code&gt;track&lt;/code&gt; property&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Why?&lt;/em&gt; &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Angular needs to track each element through any reordering, usually by treating a property of the item as a unique identifier or key (Items can later change or move).&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1pOjgRZF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dtqfszith5uwr06udvx8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1pOjgRZF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dtqfszith5uwr06udvx8.png" alt="Angular ngFor Alternative" width="524" height="52"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://angular.dev/essentials/conditionals-and-loops"&gt;Angular docs&lt;/a&gt;&lt;/p&gt;

</description>
      <category>angular</category>
      <category>angular17</category>
      <category>typescript</category>
    </item>
    <item>
      <title>Angular @if</title>
      <dc:creator>Dionis Dimcea</dc:creator>
      <pubDate>Wed, 08 Nov 2023 17:04:20 +0000</pubDate>
      <link>https://dev.to/dionisd/angular-if-50h1</link>
      <guid>https://dev.to/dionisd/angular-if-50h1</guid>
      <description>&lt;h2&gt;
  
  
  Angular has released the new '@if' block syntax inspired by Javascript
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;How does this work?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;@if&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Similar to JavaScript's if statement, Angular uses &lt;code&gt;@if&lt;/code&gt; to conditionally hide and show part of a template and its contents&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8j9XGQmd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5duqas69hiou74nkdyam.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8j9XGQmd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5duqas69hiou74nkdyam.png" alt="Angular ngIf alternative" width="326" height="236"&gt;&lt;/a&gt;&lt;br&gt;
&lt;code&gt;@else&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;When you need a fallback, similar to JavaScript's &lt;code&gt;else&lt;/code&gt; clause, add an &lt;code&gt;@else&lt;/code&gt; block to accomplish the same effect&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--CHhk_sK7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h3tyrysiuf2jexdvdmun.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--CHhk_sK7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h3tyrysiuf2jexdvdmun.png" alt="Angular ngIf else alternative" width="331" height="271"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://angular.dev/essentials/conditionals-and-loops"&gt;Angular docs&lt;/a&gt;&lt;/p&gt;

</description>
      <category>angular</category>
      <category>angular17</category>
      <category>typesccript</category>
    </item>
  </channel>
</rss>
