<?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>Forem: Supto Khan</title>
    <description>The latest articles on Forem by Supto Khan (@supto_khan).</description>
    <link>https://forem.com/supto_khan</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%2F3826678%2F70a60868-4ec6-4bc7-9a40-18f16b5e9109.png</url>
      <title>Forem: Supto Khan</title>
      <link>https://forem.com/supto_khan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/supto_khan"/>
    <language>en</language>
    <item>
      <title>The Signal Forms Migration: A Step-by-Step Guide for Angular v21</title>
      <dc:creator>Supto Khan</dc:creator>
      <pubDate>Tue, 17 Mar 2026 09:41:14 +0000</pubDate>
      <link>https://forem.com/supto_khan/the-signal-forms-migration-a-step-by-step-guide-for-angular-v21-21m8</link>
      <guid>https://forem.com/supto_khan/the-signal-forms-migration-a-step-by-step-guide-for-angular-v21-21m8</guid>
      <description>&lt;p&gt;The release of Angular v21 marks a pivotal moment. With Signal Forms becoming the new standard, the "Legacy" tag on Reactive Forms isn't just a label—it's a call to modernize.&lt;/p&gt;

&lt;p&gt;I recently migrated a complex production form (multi-step, dynamic validation) to Signal Forms. Here is the breakdown of the "Wins" and the "How-to."&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The Syntax Shift
In the old world, we'd manually instantiate FormGroup and FormControl. Now, it’s all about the signalForm.
&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;// Before (Reactive)&lt;/span&gt;
&lt;span class="nx"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;FormControl&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Supto&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;Validators&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;required&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// After (Signal Forms)&lt;/span&gt;
&lt;span class="nx"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;signalForm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Supto&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="na"&gt;validators&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;required&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;Computed Reactivity &amp;gt; Complex Subscriptions
One of the biggest headaches in Reactive Forms was syncing two fields. You’d end up with a mess of combineLatest or nested subscriptions. With Signals, we use computed() to handle dependencies:
&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;// The 'total' signal updates automatically when 'price' or 'quantity' changes&lt;/span&gt;
&lt;span class="nx"&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="o"&gt;=&amp;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;price&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="o"&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;quantity&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Type Safety: The End of any&lt;br&gt;
We’ve all fought with FormGroup.value returning any or a partial type that didn't match our interface. Signal Forms are strictly typed from the start. Your IDE will now accurately suggest properties and catch errors before you even hit "Save."&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Why Migrate Now?&lt;br&gt;
Zoneless Readiness: If you want to drop zone.js, Signal Forms are a requirement, not an option.&lt;br&gt;
Reduced Bundle Size: The new API is more tree-shakable.&lt;br&gt;
Cleaner Logic: Validation logic is now decoupled from the component lifecycle.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The Verdict&lt;br&gt;
The migration isn't just a "nice to have"—it's the direction the framework is moving. While there is a learning curve in thinking "signal-first," the resulting code is significantly more maintainable.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Are you sticking with Reactive Forms for now, or are you already refactoring? Let’s discuss the migration friction below.&lt;/p&gt;

</description>
      <category>angular</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>The "Unpopular Opinion"</title>
      <dc:creator>Supto Khan</dc:creator>
      <pubDate>Mon, 16 Mar 2026 08:10:09 +0000</pubDate>
      <link>https://forem.com/supto_khan/the-unpopular-opinion-3473</link>
      <guid>https://forem.com/supto_khan/the-unpopular-opinion-3473</guid>
      <description>&lt;p&gt;Stop using NgModules. Period.&lt;/p&gt;

&lt;p&gt;The "old guard" is still clinging to AppModule out of a sense of comfort, but your legacy architecture is actively sabotaging your application's future. If you haven't moved to a 100% Standalone architecture yet, you aren't just staying organized—you’re paying a "technical debt tax" every single day.&lt;/p&gt;

&lt;p&gt;Here is why it’s time to hit delete:&lt;/p&gt;

&lt;p&gt;Build Speed &amp;amp; Tree-Shaking: Modules create artificial dependency buckets that bloat your bundles; Standalone components allow the compiler to aggressively prune what you don't need.&lt;/p&gt;

&lt;p&gt;The 20% Rule: Teams moving to full Standalone are seeing up to 20% faster CI/CD pipelines because the dependency graph is finally flat and predictable.&lt;/p&gt;

&lt;p&gt;Developer Velocity: Stop jumping between three files just to add one component; Standalone turns the friction of "Angular overhead" into the streamlined experience of modern web dev.&lt;/p&gt;

&lt;p&gt;I know, migration is a "pain in the service layer," but the trade-off for a leaner, faster, and more scalable codebase is no longer optional.&lt;/p&gt;

&lt;p&gt;Are you still clinging to Modules for "organization," or have you finally seen the Standalone light?&lt;/p&gt;

&lt;p&gt;Fight me in the comments (nicely)! 👇&lt;/p&gt;

</description>
      <category>angular</category>
      <category>webdev</category>
      <category>cleancode</category>
      <category>frontend</category>
    </item>
  </channel>
</rss>
