<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by MLGLOBTECH on Medium]]></title>
        <description><![CDATA[Stories by MLGLOBTECH on Medium]]></description>
        <link>https://medium.com/@mlglobtech?source=rss-735cb4571c6a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*SnLYWtKXK5sEWS-pkf9BIg.png</url>
            <title>Stories by MLGLOBTECH on Medium</title>
            <link>https://medium.com/@mlglobtech?source=rss-735cb4571c6a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 20:03:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mlglobtech/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Angular 22 Signal Inputs: Replacing @Input() with input() and input.required()]]></title>
            <link>https://medium.com/@mlglobtech/angular-22-signal-inputs-replacing-input-with-input-and-input-required-01f91b2b8726?source=rss-735cb4571c6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/01f91b2b8726</guid>
            <category><![CDATA[signal-input]]></category>
            <category><![CDATA[component-communication]]></category>
            <category><![CDATA[signals-api]]></category>
            <category><![CDATA[angular-22]]></category>
            <category><![CDATA[modern-angular]]></category>
            <dc:creator><![CDATA[MLGLOBTECH]]></dc:creator>
            <pubDate>Thu, 06 Aug 2026 06:42:16 GMT</pubDate>
            <atom:updated>2026-08-06T06:42:16.866Z</atom:updated>
            <content:encoded><![CDATA[<p>Angular 22 Signals Series — Part 2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gq7mjm2TOHWHdFbAxZK29g.png" /></figure><p>In the previous article, we explored how Angular component communication evolved from the traditional:</p><pre>@Input()<br>@Output()<br>EventEmitter</pre><p>approach to the modern Signal-based APIs:</p><pre>input()<br>output()<br>model()</pre><p>In this article, we will focus on one of the biggest changes in Angular component architecture:</p><blockquote><strong><em>Signal Inputs — replacing </em></strong><strong><em>@Input() with </em></strong><strong><em>input()</em></strong></blockquote><p>Angular Signals bring a more reactive and type-safe way to receive data from parent components.</p><p>We will explore:</p><ul><li>What are Signal Inputs?</li><li>Traditional @Input() vs input()</li><li>input.required()</li><li>Default values</li><li>Type safety improvements</li><li>Using inputs with computed()</li></ul><h3>What Are Signal Inputs?</h3><p>A Signal Input is a special type of Angular Signal that receives values from a parent component.</p><p>Traditional Angular:</p><pre>@Input()</pre><p>Modern Angular:</p><pre>input()</pre><p>The main difference:</p><p>@Input() creates a normal class property.</p><p>input() creates a <strong>read-only signal</strong>.</p><p>Example:</p><pre>import { Component, input } from &#39;@angular/core&#39;;<br><br>@Component({<br>  selector: &#39;app-user-card&#39;,<br>  standalone: true,<br>  template: `<br>    &lt;h2&gt;<br>      {{ name() }}<br>    &lt;/h2&gt;<br>  `<br>})<br><br>export class UserCardComponent {<br>  name = input&lt;string&gt;();<br>}</pre><p>Notice:</p><p>Traditional:</p><pre>{{ name }}</pre><p>Signal Input:</p><pre>{{ name() }}</pre><p>Because name is now a signal.</p><h3>Traditional @Input() Approach</h3><p>Before Signals, we created inputs using decorators.</p><p>Example:</p><pre>import { Component, Input } from &#39;@angular/core&#39;;<br><br>@Component({<br> selector:&#39;app-product-card&#39;,<br> template:`<br>   &lt;h2&gt;{{productName}}&lt;/h2&gt;<br> `<br>})<br>export class ProductCardComponent {<br><br> @Input()<br> productName!: string;<br><br>}</pre><p>Parent:</p><pre>&lt;app-product-card<br> [productName]=&quot;product.name&quot;&gt;<br>&lt;/app-product-card&gt;</pre><p>This works, but Angular does not treat productName as a reactive signal.</p><h3>The New input() API</h3><p>The same component using Signal Inputs:</p><pre>import { Component, input } from &#39;@angular/core&#39;;<br><br>@Component({<br> selector:&#39;app-product-card&#39;,<br> template:`<br>   &lt;h2&gt;<br>     {{productName()}}<br>   &lt;/h2&gt;<br> `<br>})<br>export class ProductCardComponent {<br><br> productName = input&lt;string&gt;();<br><br>}</pre><p>The parent remains the same:</p><pre>&lt;app-product-card<br> [productName]=&quot;product.name&quot;&gt;<br>&lt;/app-product-card&gt;</pre><p>The difference is inside the component.</p><h3>How Signal Inputs Work</h3><p>When the parent value changes:</p><pre>Parent Component<br>      |<br>      |  <br>      ↓<br>  product.name<br>      |<br>      |<br>      ↓<br>Signal Input<br>productName()<br>      |<br>      |<br>      ↓<br>Template updates automatically</pre><p>Angular tracks the signal dependency automatically.</p><p>No need for:</p><pre>ngOnChanges()</pre><h3>Why Use input() Instead of @Input()?</h3><h3>1. Better Reactivity</h3><p>With traditional inputs:</p><pre>@Input() price!:number;</pre><p>Developers often write:</p><pre>ngOnChanges(){<br>  this.total =<br>    this.price * this.quantity;<br>}</pre><p>With Signals:</p><pre>price = input(0);<br>  <br>total = computed(() =&gt;<br>   this.price() * 10<br>);</pre><p>Angular automatically tracks changes.</p><h3>Using input() with computed()</h3><p>Signal Inputs work naturally with computed signals.</p><p>Example:</p><pre>import {<br> Component,<br> input,<br> computed<br>} from &#39;@angular/core&#39;;<br><br>@Component({<br> selector:&#39;app-product&#39;,<br> template:`<br>   &lt;h2&gt;<br>    {{formattedPrice()}}<br>   &lt;/h2&gt;<br> `<br>})<br>export class ProductComponent {<br><br> price = input(0);<br><br> formattedPrice = computed(()=&gt;{<br>   return `$${this.price()}`;<br> });<br><br>}</pre><p>If the parent changes:</p><pre>price = 100;</pre><p>Angular recalculates:</p><pre>$100</pre><p>No lifecycle methods required.</p><h3>Required Inputs with input.required()</h3><p>One of the biggest improvements is required input support.</p><p>Traditional Angular:</p><pre>@Input({ required:true })name!:string;</pre><p>Modern Angular:</p><pre>name = input.required&lt;string&gt;();</pre><p>Example:</p><pre>@Component({<br> selector:&#39;app-user-profile&#39;,<br> template:`<br>   &lt;h1&gt;<br>     {{name()}}<br>   &lt;/h1&gt;<br> `<br>})<br><br>export class UserProfileComponent {<br>    name = input.required&lt;string&gt;();<br>}</pre><p>Now Angular requires:</p><pre>&lt;app-user-profile [name]=&quot;username&quot;&gt;<br>&lt;/app-user-profile&gt;</pre><p>If the parent forgets:</p><pre>&lt;app-user-profile&gt; &lt;/app-user-profile&gt;</pre><p>Angular compiler reports an error.</p><h3>Why Required Inputs Are Important</h3><p>Consider:</p><pre>@Component({<br> selector:&#39;app-user&#39;,<br> template:`<br> {{user().name}}<br> `<br>})<br><br>export class UserComponent {<br>  user = input&lt;User&gt;();<br>}</pre><p>Problem:</p><p>user() can be undefined.</p><p>Developers need:</p><pre>user()?.name</pre><p>With:</p><pre>user = input.required&lt;User&gt;();</pre><p>Angular knows:</p><pre>user()</pre><p>always exists.</p><p>Cleaner code:</p><pre>{{user().name}}</pre><h3>Default Values with input()</h3><p>Inputs can have default values.</p><p>Example:</p><pre>size = input(&#39;medium&#39;);</pre><p>Now:</p><pre>size()</pre><p>returns:</p><pre>medium</pre><p>until the parent provides another value.</p><p>Parent:</p><pre>&lt;app-button [size]=&quot;&#39;large&#39;&quot;&gt;<br>&lt;/app-button&gt;</pre><h3>Type Inference with Default Values</h3><p>Angular automatically understands the type.</p><p>Example:</p><pre>count = input(0);</pre><p>Angular infers:</p><pre>Signal&lt;number&gt;</pre><p>You do not need:</p><pre>input&lt;number&gt;(0);</pre><h3>Reading Signal Inputs in Templates</h3><p>Old:</p><pre>{{ username }}</pre><p>New:</p><pre>{{ username() }}</pre><p>Example:</p><pre>username=input.required&lt;string&gt;();</pre><p>Template:</p><pre>&lt;h1&gt; Welcome {{ username() }} &lt;/h1&gt;</pre><h3>Signal Input with Effects</h3><p>Sometimes you need to perform a side effect when an input changes.</p><p>Example:</p><pre>import {<br> effect,<br> input<br>} from &#39;@angular/core&#39;;<br><br>export class UserComponent {<br><br> user=input.required&lt;User&gt;();<br><br> constructor(){<br>   effect(()=&gt;{<br>     console.log( this.user() );<br>   });<br> }<br>}</pre><p>Whenever the parent changes user, the effect runs.</p><h3>@Input() vs input()</h3><p>Feature @Input() input()API Style Decorator Function Reactive Limited Signal based Type Safety Good Better Required Inputs Supported Built-in Transform Manual Built-in Works with computed No Yes Lifecycle Needed Often Less</p><h3>Conclusion</h3><p>Angular 22 Signal Inputs represent a major improvement in component design.</p><p>The traditional:</p><pre>@Input()</pre><p>is replaced by:</p><pre>input()</pre><p>and:</p><pre>input.required()</pre><p>Benefits:</p><p>✅ Reactive by default<br> ✅ Better TypeScript support<br> ✅ Less lifecycle code<br> ✅ Cleaner templates<br> ✅ Built-in transformations</p><p>The migration is simple, and Signal Inputs are becoming the recommended approach for modern Angular applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01f91b2b8726" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Angular 22 Modern Component Communication]]></title>
            <link>https://medium.com/@mlglobtech/angular-22-modern-component-communication-200947edf985?source=rss-735cb4571c6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/200947edf985</guid>
            <category><![CDATA[parent-child-relationship]]></category>
            <category><![CDATA[angular-22]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[MLGLOBTECH]]></dc:creator>
            <pubDate>Mon, 03 Aug 2026 08:48:30 GMT</pubDate>
            <atom:updated>2026-08-03T08:48:30.164Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Angular 22 Signals Series — Part 1</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QCip4TTvXR-GMNGkH9Es7Q.png" /></figure><p>Angular components are the foundation of every Angular application. As applications grow, communication between components becomes one of the most important architectural decisions.</p><p>A parent component needs to send data to a child component.</p><p>A child component needs to notify the parent about user actions.</p><p>Sometimes both components need to share and update the same value.</p><p>For many years, Angular developers solved these problems using:</p><ul><li>@Input()</li><li>@Output()</li><li>EventEmitter</li></ul><p>This approach has powered Angular applications for years and still works today.</p><p>However, Angular is moving toward a <strong>signal-based architecture</strong>.</p><p>Modern Angular introduces new component APIs:</p><pre>input()<br>output()<br>model()</pre><p>These APIs provide:</p><ul><li>Better type safety</li><li>Less boilerplate code</li><li>Built-in reactivity</li><li>Cleaner component APIs</li><li>Better developer experience</li></ul><p>In this article, we will understand the traditional approach and why Angular introduced Signal-based component communication.</p><h3>Understanding Component Communication in Angular</h3><p>Angular components communicate mainly in three ways:</p><h3>1. Parent → Child Communication</h3><p>A parent component passes data to a child component.</p><p>Example:</p><pre>Parent Component<br>        |<br>        |<br>        ↓<br>Child Component</pre><p>Traditional Angular uses:</p><pre>@Input()</pre><h3>2. Child → Parent Communication</h3><p>A child component sends events back to the parent.</p><p>Example:</p><pre>Child Component<br>        |<br>        |<br>        ↓<br>Parent Componen</pre><p>Traditional Angular uses:</p><pre>@Output()<br>EventEmitter</pre><h3>3. Two-Way Communication</h3><p>Both parent and child can update the same value.</p><p>Example:</p><pre>Parent  &lt;------&gt;  Child</pre><p>Traditional Angular uses:</p><pre>@Input()<br>+<br>@Output()</pre><h3>The Traditional Angular Approach</h3><p>Before Signal APIs, Angular developers commonly created components like this.</p><h3>Parent Component</h3><pre>import { Component } from &#39;@angular/core&#39;;<br><br>@Component({<br>  selector: &#39;app-root&#39;,<br>  template: `<br>    &lt;app-user-card<br>      [username]=&quot;userName&quot;&gt;<br>    &lt;/app-user-card&gt;<br>  `<br>})<br>export class AppComponent {<br>  userName = &#39;Angular Developer&#39;;<br>}<br></pre><p>The parent passes data using property binding:</p><pre>[username]=&quot;userName&quot;</pre><h3>Using @Input() for Parent to Child Communication</h3><p>Child component:</p><pre>import { Component, Input } from &#39;@angular/core&#39;;<br><br>@Component({<br>  selector: &#39;app-user-card&#39;,<br>  template: `<br>    &lt;h2&gt;<br>      {{ username }}<br>    &lt;/h2&gt;<br>  `<br>})<br>export class UserCardComponent {<br><br>  @Input()<br>  username!: string;<br><br>}</pre><p>The data flow looks like:</p><pre>  AppComponent<br>        |<br>        |<br>        ↓<br>    username<br>        |<br>        |<br>        ↓<br>UserCardComponent</pre><p>The child receives the value but does not own the data.</p><h3>Child to Parent Communication with @Output()</h3><p>Now imagine a child component has a button.</p><p>When the user clicks the button, the child needs to inform the parent.</p><p>The traditional solution:</p><pre>@Output()<br>selected =<br>new EventEmitter&lt;string&gt;();</pre><p>Example:</p><pre>import { Component, Output, EventEmitter } from &#39;@angular/core&#39;;<br><br>@Component({<br>  selector:&#39;app-user-card&#39;,<br>  template:`<br>    &lt;button (click)=&quot;selectUser()&quot;&gt;<br>       Select<br>    &lt;/button&gt;<br>  `<br>})<br>export class UserCardComponent {<br><br> @Output()<br> selected =<br> new EventEmitter&lt;string&gt;();<br><br> selectUser(){<br>   this.selected.emit(&#39;Angular&#39;);<br> }<br><br>}</pre><p>The child emits an event:</p><pre> Child Component<br>        |<br>        |     <br>        ↓<br>      emit()<br>        |<br>        |<br>        ↓<br>Parent Component</pre><h3>Parent Listening to Child Events</h3><p>Parent template:</p><pre>&lt;app-user-card<br>(selected)=&quot;handleSelection($event)&quot;&gt;<br>&lt;/app-user-card&gt;</pre><p>Parent component:</p><pre>handleSelection(value:string){<br>  console.log(value);<br>}</pre><p>The complete flow:</p><pre>Child<br> |<br> | EventEmitter.emit()<br> |<br> ↓<br>Parent<br> |<br> | handleSelection()<br> |<br> ↓<br>Update State</pre><h3>Two-Way Binding Before Signals</h3><p>Angular developers often created custom two-way binding.</p><p>Example:</p><p>A custom checkbox component.</p><p>Child:</p><pre>@Input()<br>checked = false;<br><br>@Output()<br>checkedChange =<br>new EventEmitter&lt;boolean&gt;();<br><br>toggle(){<br> this.checkedChange.emit(<br>   !this.checked<br> );<br>}</pre><p>Parent:</p><pre>&lt;app-checkbox<br>[(checked)]=&quot;isChecked&quot;&gt;<br>&lt;/app-checkbox&gt;</pre><p>Angular internally converts this:</p><pre>[checked]=&quot;isChecked&quot;<br><br>(checkedChange)=&quot;isChecked=$event&quot;</pre><p>So a simple two-way binding required:</p><ul><li>One input</li><li>One output</li><li>One EventEmitter</li></ul><h3>Limitations of the Traditional Approach</h3><p>The old approach is powerful, but it has some challenges.</p><h3>1. More Boilerplate Code</h3><p>For simple communication, developers need multiple pieces.</p><p>Example:</p><pre>@Input()<br><br>@Output()<br><br>EventEmitter.emit()</pre><p>A small component can become verbose.</p><h3>2. Input Changes Require Lifecycle Methods</h3><p>When an input changes, developers often use:</p><pre>ngOnChanges()</pre><p>Example:</p><pre>ngOnChanges(){<br>  console.log(this.username);<br>}</pre><p>The component needs lifecycle management only to react to data changes.</p><h3>3. Type Safety Can Be Weak</h3><p>A common pattern:</p><pre>@Input()<br>data:any;</pre><p>The problem:</p><ul><li>No compile-time safety</li><li>More runtime errors</li><li>Harder refactoring</li></ul><h3>4. Two-Way Binding Requires Multiple APIs</h3><p>Before:</p><pre>@Input()<br>+<br>@Output()<br>+<br>EventEmitte</pre><p>Developers had to maintain both directions manually.</p><h3>Angular Signals Changed the Component Model</h3><p>Angular introduced Signals to create a more reactive programming model.</p><p>Instead of manually managing:</p><ul><li>lifecycle hooks</li><li>event emitters</li><li>change detection logic</li></ul><p>Angular can track reactive state automatically.</p><p>The new component APIs are:</p><h3>Signal Inputs</h3><p>Replacement for:</p><pre>@Input()</pre><p>New:</p><pre>input()</pre><p>Example:</p><pre>name = input&lt;string&gt;();</pre><h3>Signal Outputs</h3><p>Replacement for:</p><pre>@Output()<br>EventEmitter</pre><p>New:</p><pre>output()</pre><p>Example:</p><pre>selected = output&lt;string&gt;();</pre><h3>Model Inputs</h3><p>Replacement for:</p><pre>@Input()<br>+<br>@Output()</pre><p>New:</p><pre>model()</pre><p>Example:</p><pre>value = model(&#39;&#39;);</pre><h3>Old Angular vs Angular 22</h3><p>Traditional AngularAngular 22 Signal APIs@Input() input() @Output() output() EventEmitteroutput() events@Input() + @Output() model() ngOnChanges() computed() / effect()Manual event handlingReactive updates</p><h3>Why Angular Is Moving Toward Signals</h3><p>Signal APIs provide:</p><h3>Better Reactivity</h3><p>Angular knows exactly what data changed.</p><h3>Better Type Safety</h3><p>Example:</p><pre>name = input.required&lt;string&gt;();</pre><p>Angular understands:</p><ul><li>the type</li><li>whether the value is required</li><li>where the value is used</li></ul><h3>Cleaner Components</h3><p>Modern Angular components become easier to understand:</p><pre>export class UserComponent {<br>  user = input.required&lt;User&gt;();<br>  selected = output&lt;User&gt;();<br>  checked = model(false);<br>}</pre><h3>Migration Path</h3><p>Angular developers can gradually migrate:</p><pre>Old Angular<br> @Input()<br>     |<br>     ↓<br>input()<br><br>@Output()<br>EventEmitter<br>     |<br>     ↓<br>output()<br><br>@Input()<br>+<br>@Output()<br>     |<br>     ↓<br>model()</pre><p>You do not need to rewrite your entire application immediately.</p><p>Angular supports both approaches.</p><h3>Conclusion</h3><p>Angular component communication has evolved.</p><p>The traditional:</p><pre>@Input()<br>@Output()<br>EventEmitter</pre><p>approach introduced Angular developers to component-based architecture.</p><p>But Angular 22 introduces a cleaner, signal-first future:</p><pre>input()<br>output()<br>model()</pre><p>These APIs reduce boilerplate, improve type safety, and make components more reactive.</p><p>In the next article, we will explore <strong>Signal Inputs in Angular 22</strong>:</p><ul><li>How input() works</li><li>input.required()</li><li>Default values</li><li>Transform functions</li><li>Migrating from @Input() to Signal Inputs</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=200947edf985" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Every Business Needs a Secure Document Management System]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@mlglobtech/why-every-business-needs-a-secure-document-management-system-0d8cb81dd278?source=rss-735cb4571c6a------2"><img src="https://cdn-images-1.medium.com/max/1734/1*Z2AOBhDO_wU8qME7e8jYcQ.png" width="1734"></a></p><p class="medium-feed-snippet">In today&#x2019;s digital-first business environment, organizations generate and manage thousands of documents every day. From contracts and&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@mlglobtech/why-every-business-needs-a-secure-document-management-system-0d8cb81dd278?source=rss-735cb4571c6a------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@mlglobtech/why-every-business-needs-a-secure-document-management-system-0d8cb81dd278?source=rss-735cb4571c6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/0d8cb81dd278</guid>
            <dc:creator><![CDATA[MLGLOBTECH]]></dc:creator>
            <pubDate>Mon, 03 Aug 2026 07:18:14 GMT</pubDate>
            <atom:updated>2026-08-05T14:05:15.716Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Best POS Software for Retail, Restaurants, and Service Businesses]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@mlglobtech/best-pos-software-for-retail-restaurants-and-service-businesses-bd7a9f435353?source=rss-735cb4571c6a------2"><img src="https://cdn-images-1.medium.com/max/2017/1*N3Sfagu3T1u_ELnafF1V_g.jpeg" width="2017"></a></p><p class="medium-feed-snippet">Running a successful business today requires more than simply processing sales. Whether you own a retail store, restaurant, salon&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@mlglobtech/best-pos-software-for-retail-restaurants-and-service-businesses-bd7a9f435353?source=rss-735cb4571c6a------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@mlglobtech/best-pos-software-for-retail-restaurants-and-service-businesses-bd7a9f435353?source=rss-735cb4571c6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd7a9f435353</guid>
            <dc:creator><![CDATA[MLGLOBTECH]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 10:06:01 GMT</pubDate>
            <atom:updated>2026-07-27T10:06:01.550Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Mastering Dynamic Forms in Angular Signal Forms: A Complete Guide to FormArray, Validation &…]]></title>
            <link>https://medium.com/@mlglobtech/mastering-dynamic-forms-in-angular-signal-forms-a-complete-guide-to-formarray-validation-07bf53b2ca93?source=rss-735cb4571c6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/07bf53b2ca93</guid>
            <dc:creator><![CDATA[MLGLOBTECH]]></dc:creator>
            <pubDate>Wed, 01 Jul 2026 06:10:08 GMT</pubDate>
            <atom:updated>2026-07-01T06:20:02.811Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mastering Dynamic Forms in Angular Signal Forms: A Complete Guide to FormArray, Validation &amp; Real-World Patterns</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xV05lJC8X0YBa81Fnr-jpA.png" /></figure><p>If you’ve ever worked with forms in Angular, you already know one thing:</p><blockquote><em>Dynamic forms (especially FormArray) are where complexity usually explodes.</em></blockquote><p>From managing arrays of controls to syncing validation states, traditional Reactive Forms often feel verbose and error-prone.</p><p>With the introduction of <strong>Signal-based Forms</strong>, Angular introduces a much cleaner mental model where forms are derived from state — not manually constructed control trees.</p><p>In this guide, you’ll learn how to build a <strong>real-world dynamic form using Signal Forms</strong>, including:</p><ul><li>Required field validation</li><li>Email validation</li><li>Dynamic FormArray (policies list)</li><li>Array-level validation</li><li>Per-item validation</li><li>Add/Remove functionality</li><li>Clean template structure</li></ul><h3>📌 What You Will Learn</h3><p>By the end of this article, you’ll understand:</p><ul><li>How Signal Forms replace FormGroup &amp; FormArray</li><li>How to manage dynamic arrays using signals</li><li>How validation works at field and array level</li><li>How to build scalable dynamic forms</li><li>How to render clean templates with minimal boilerplate</li></ul><h3>🧠 The New Mental Model of Angular Forms</h3><p>Traditional Reactive Forms:</p><ul><li>FormGroup</li><li>FormControl</li><li>FormArray</li><li>Manual synchronization</li></ul><p>Signal Forms simplify this into:</p><blockquote><strong><em>State → Form → Field Tree → UI Binding</em></strong></blockquote><p>Instead of building a structure manually, you define a model — and the form reacts to it.</p><h3>🧩 Step 1: Define the Form Model (Single Source of Truth)</h3><p>We start with a simple signal-based model.</p><pre>import { signal } from &#39;@angular/core&#39;;<br><br>interface ClientFormModel {<br>  name: string;<br>  email: string;<br>  policies: string[];<br>}<br>readonly model = signal&lt;ClientFormModel&gt;({<br>  name: &#39;&#39;,<br>  email: &#39;&#39;,<br>  policies: [&#39;&#39;]<br>});</pre><h3>💡 Why this matters</h3><p>This replaces:</p><ul><li>FormGroup structure</li><li>FormArray initialization</li><li>Nested control setup</li></ul><p>Now everything starts from <strong>one reactive state object</strong>.</p><h3>⚙️ Step 2: Create Signal Form with Validation</h3><p>Now we attach validation rules using Signal Forms API.</p><pre>import { Component } from &#39;@angular/core&#39;;<br>import {<br>  form,<br>  required,<br>  email,<br>  minLength,<br>  applyEach<br>} from &#39;@angular/forms/signals&#39;;<br><br>@Component({<br>  selector: &#39;app-client-form&#39;,<br>  templateUrl: &#39;./client-form.component.html&#39;<br>})<br>export class ClientFormComponent {<br><br>  readonly clientForm = form(this.model, (path) =&gt; {<br><br>    required(path.name, {<br>      message: &#39;Name is required&#39;<br>    });<br><br>    required(path.email, {<br>      message: &#39;Email is required&#39;<br>    });<br><br>    email(path.email, {<br>      message: &#39;Invalid email format&#39;<br>    });<br><br>    minLength(path.policies, 1, {<br>      message: &#39;At least one policy is required&#39;<br>    });<br><br>    applyEach(path.policies, (policy) =&gt; {<br>      required(policy, {<br>        message: &#39;Policy number is required&#39;<br>      });<br>    });<br><br>  });<br><br>  onSubmit() {<br>    if (this.clientForm.valid()) {<br>      console.log(&#39;Form Value:&#39;, this.clientForm.value());<br>    } else {<br>      console.log(&#39;Form is invalid&#39;);<br>    }<br>  }<br>}</pre><h3>🔥 Key Insight</h3><p>Unlike Reactive Forms:</p><ul><li>No FormArray creation</li><li>No push/remove control logic</li><li>No manual validators per control</li></ul><p>Everything is derived from the model.</p><h3>🧾 Step 3: Build the UI — Name Field</h3><pre>&lt;label&gt;Name&lt;/label&gt;<br>&lt;input<br>  class=&quot;form-control&quot;<br>  [formField]=&quot;clientForm.name&quot;<br>  placeholder=&quot;Enter Name&quot;<br>/&gt;<br>@if (clientForm.name().touched() &amp;&amp; clientForm.name().invalid()) {<br>  &lt;div class=&quot;text-danger&quot;&gt;<br>    @for (error of clientForm.name().errors(); track error.kind) {<br>      &lt;div&gt;{{ error.message }}&lt;/div&gt;<br>    }<br>  &lt;/div&gt;<br>}</pre><h3>🧪 What’s happening here?</h3><p>Each field exposes:</p><ul><li>touched()</li><li>invalid()</li><li>errors(</li></ul><p>No need for:</p><pre>form.get(&#39;name&#39;)?.errors</pre><p>This is where Signal Forms becomes powerful.</p><pre>@for (policy of model().policies; track $index; let i = $index) {<br>&lt;div class=&quot;input-group mb-2&quot;&gt;<br>    &lt;input<br>      class=&quot;form-contro<br>      [formField]=&quot;clientForm.policies[i]&quot;<br>      placeholder=&quot;Policy Number&quot;<br>    /&gt;<br>    @if (i === 0) {<br>      &lt;button class=&quot;btn btn-primary&quot; (click)=&quot;addPolicy()&quot;&gt;<br>        Add<br>      &lt;/button&gt;<br>    }<br>    @if (i &gt; 0) {<br>      &lt;button class=&quot;btn btn-danger&quot; (click)=&quot;removePolicy(i)&quot;&gt;<br>        Remove<br>      &lt;/button&gt;<br>    }<br>  &lt;/div&gt;<br>}</pre><h3>🧠 Why this is powerful</h3><p>In Reactive Forms:</p><ul><li>You manually manage FormArray</li><li>You call push() / removeAt()</li></ul><p>In Signal Forms:</p><ul><li>Array = state</li><li>UI = direct mapping of state</li><li>No control management</li></ul><h3>🧪 Step 6: Per-Item Validation (FormArray Items)</h3><p>Each item behaves like an independent field.</p><pre>@for (policy of model().policies; track $index; let i = $index) {<br>&lt;input<br>    class=&quot;form-control&quot;<br>    [formField]=&quot;clientForm.policies[i]&quot;<br>  /&gt;<br>  @if (<br>    clientForm.policies[i]().touched() &amp;&amp;<br>    clientForm.policies[i]().invalid()<br>  ) {<br>    &lt;div class=&quot;text-danger&quot;&gt;<br>      @for (error of clientForm.policies[i]().errors(); track error.kind) {<br>        &lt;div&gt;{{ error.message }}&lt;/div&gt;<br>      }<br>    &lt;/div&gt;<br>  }<br>}</pre><h3>📦 Step 7: Array-Level Validation (FormArray Equivalent)</h3><p>This replaces:</p><pre>form.get(&#39;policies&#39;)?.errors</pre><p>Now fully reactive:</p><pre>@if (clientForm.policies().touched() &amp;&amp; clientForm.policies().invalid()) {<br>&lt;div class=&quot;text-danger&quot;&gt;<br>    @for (error of clientForm.policies().errors(); track error.kind) {<br>      &lt;div&gt;{{ error.message }}&lt;/div&gt;<br>    }<br>  &lt;/div&gt;<br>}</pre><h3>📌 Use cases</h3><ul><li>Minimum items required</li><li>Maximum allowed policies</li><li>Duplicate detection (advanced)</li><li>Business rules validation</li></ul><h3>➕ Step 8: Add / Remove Logic (Signal-Based State Updates)</h3><p>Instead of FormArray manipulation:</p><pre>addPolicy() {<br>  this.model.update(client =&gt; ({<br>    ...client,<br>    policies: [...client.policies, &#39;&#39;]<br>  }));<br>}<br><br>removePolicy(index: number) {<br>  this.model.update(client =&gt; ({<br>    ...client,<br>    policies: client.policies.filter((_, i) =&gt; i !== index)<br>  }));<br>}</pre><h3>🚀 Key Takeaways</h3><h3>✔ Old Reactive Forms Model</h3><ul><li>FormGroup</li><li>FormControl</li><li>FormArray</li><li>Manual synchronization</li><li>Verbose logic</li></ul><h3>✔ Signal Forms Model</h3><ul><li>Model-driven architecture</li><li>Automatic field tree generation</li><li>Array = simple state</li><li>Validation bound to fields</li><li>Minimal boilerplate</li></ul><h3>🔥 Final Thoughts</h3><p>Dynamic forms have always been one of the hardest parts of Angular development.</p><p>But with Signal Forms in Angular, the complexity shifts:</p><blockquote><em>From managing form structure → to managing application state</em></blockquote><p>This makes FormArray handling:</p><ul><li>Easier to reason about</li><li>Easier to scale</li><li>Easier to maintain</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=07bf53b2ca93" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Dynamic Forms in Angular 22 Using Signal Forms Instead of FormArray]]></title>
            <link>https://medium.com/@mlglobtech/building-dynamic-forms-in-angular-22-using-signal-forms-instead-of-formarray-395fb9f881fe?source=rss-735cb4571c6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/395fb9f881fe</guid>
            <dc:creator><![CDATA[MLGLOBTECH]]></dc:creator>
            <pubDate>Wed, 01 Jul 2026 06:09:20 GMT</pubDate>
            <atom:updated>2026-07-01T06:09:20.160Z</atom:updated>
            <content:encoded><![CDATA[<h3>Learn How to Build Dynamic List Fields in Angular 22 Signal Forms Without FormArray</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VG1qsUepVm-iOQ1TMOLgdQ.png" /></figure><p>For years, Angular developers have relied on <strong>Reactive Forms</strong> to build dynamic forms using FormArray.</p><p>A typical implementation looks like this:</p><pre>this.clientForm = this.fb.group({<br>  name: [&#39;&#39;],<br>  email: [&#39;&#39;],<br>  policies: this.fb.array([])<br>});</pre><p>We then add and remove controls using:</p><ul><li>push()</li><li>removeAt()</li></ul><p>This approach has worked well for many years.</p><p>However, <strong>Angular 22 introduces a different way of thinking with Signal Forms</strong>.</p><p>One of the first questions developers ask is:</p><blockquote><em>“Where is FormArray in Signal Forms?”</em></blockquote><p>The short answer is:</p><blockquote><em>There isn’t one.</em></blockquote><p>And that’s actually by design.</p><p>In this article, we’ll explore how Angular Signal Forms models dynamic collections, how to add and remove items, how validation works, and why this approach is more aligned with modern reactive programming.</p><h3>Understanding the Shift</h3><p>Reactive Forms is built around a hierarchy of form objects:</p><pre>FormGroup<br>│<br>├── FormControl<br>├── FormControl<br>└── FormArray<br>        ├── FormControl<br>        ├── FormControl<br>        └── FormControl</pre><p>Your application interacts with these form objects, while the actual data is synchronized separately.</p><p>Signal Forms flips this architecture.</p><p>Instead of building a tree of form controls, the <strong>model itself becomes the source of truth</strong>:</p><pre>Writable Signal&lt;Model&gt;<br>        │<br>        ▼<br>     form(model)<br>        │<br>        ▼<br>    FieldTree&lt;Model&gt;<br>        │<br>        ▼<br>      Template</pre><p>Rather than managing a collection of FormControl instances, Angular automatically creates a <strong>FieldTree</strong> that mirrors your model.</p><p>This is one of the biggest conceptual changes introduced by Signal Forms.</p><h3>Modeling Dynamic Data</h3><p>Imagine a client registration form where users can enter multiple policy numbers.</p><p>With Reactive Forms, we typically use a FormArray.</p><p>In Signal Forms, we simply model the data naturally.</p><pre>interface ClientFormModel {<br>  id: string;<br>  name: string;<br>  email: string;<br>  policies: string[];<br>}</pre><p>Our model becomes a writable signal:</p><pre>readonly model = signal&lt;ClientFormModel&gt;({<br>  id: &#39;&#39;,<br>  name: &#39;&#39;,<br>  email: &#39;&#39;,<br>  policies: [&#39;&#39;]<br>});</pre><p>Now create the form:</p><pre>readonly clientForm = form(this.model);</pre><p>Notice something important:</p><ul><li>❌ no FormGroup</li><li>❌ no FormControl</li><li>❌ no FormArray</li></ul><p>Instead, Angular derives the entire form structure directly from the model.</p><h3>Dynamic Arrays Without FormArray</h3><p>This is where most developers get confused.</p><p>Since there is no FormArray, how do we add new policy fields?</p><p>The answer is simple:</p><blockquote><em>We update the model.</em></blockquote><h3>Add Policy</h3><pre>addPolicy() {<br>  this.model.update(client =&gt; ({<br>    ...client,<br>    policies: [...client.policies, &#39;&#39;]<br>  }));<br>}</pre><p>That’s it.</p><p>When the signal changes, Angular automatically updates the generated FieldTree, which updates the UI.</p><p>No synchronization logic needed.</p><h3>Removing Items</h3><p>Removing a policy follows the same pattern:</p><pre>removePolicy(index: number) {<br>  this.model.update(client =&gt; ({<br>    ...client,<br>    policies: client.policies.filter((_, i) =&gt; i !== index)<br>  }));<br></pre><p>Instead of removeAt(), we simply update the model.</p><p>This keeps state predictable and aligned with Angular’s reactive architecture.</p><h3>Rendering Dynamic Fields</h3><p>Angular 22 introduces modern control flow with @for.</p><pre>@for (policy of model().policies; track $index) {<br>  &lt;input<br>    [formField]=&quot;clientForm.policies[$index]&quot;<br>    placeholder=&quot;Policy Number&quot; /&gt;<br>}</pre><p>What’s missing here compared to Reactive Forms?</p><ul><li>❌ formArrayName</li><li>❌ formControlName</li></ul><p>Each array element is represented directly in the FieldTree, and formField binds it automatically.</p><h3>Validating the Array</h3><p>Suppose the rule is:</p><blockquote><em>The user must enter at least one policy number.</em></blockquote><p>Signal Forms handles this in the schema:</p><pre>readonly clientForm = form(this.model, path =&gt; {<br>  minLength(path.policies, 1, {<br>    message: &#39;At least one policy is required.&#39;<br>  });<br>});</pre><p>Validation is centralized and declarative.</p><h3>Validating Each Item</h3><p>Sometimes each policy needs validation.</p><p>For example: every policy must be required.</p><pre>const clientForm = form(model, path =&gt; {<br> applyEach(path.policies, (policy) =&gt; {<br>    required(policy, {<br>      message: &#39;Policy number is required&#39;<br>    });<br>  });<br>});</pre><p>This is similar to applying validators inside a FormArray, but aligned with Signal Forms architecture.</p><h3>Why This Design Matters</h3><p>At first, the absence of FormArray feels like a limitation.</p><p>But it’s actually a design improvement.</p><p>Instead of maintaining two separate states:</p><ul><li>Application state</li><li>Form state</li></ul><p>Signal Forms keeps <strong>one source of truth</strong>:</p><ul><li>The model drives everything</li><li>FieldTree is auto-generated</li><li>Validation is declarative</li><li>Template binds directly to fields</li></ul><p>This leads to simpler and more predictable forms.</p><h3>Reactive Forms vs Signal Forms</h3><p>Reactive Forms Signal Forms Form Group Writable model signal FormControl Field FormArray Standard array Validators Schema-based validation formControl Name formField formArray Name @for + array fields</p><h3>Best Practices</h3><p>When working with Angular 22 Signal Forms:</p><ul><li>Use a writable signal as the single source of truth</li><li>Model dynamic collections as plain arrays</li><li>Use form(model) instead of manually creating controls</li><li>Update arrays immutably using signal.update()</li><li>Render with @for</li><li>Bind using formField</li><li>Define validation in schema</li><li>Use applyEach() for per-item validation</li></ul><h3>Final Thoughts</h3><p>One of the biggest misconceptions about Signal Forms is expecting a replacement for FormArray.</p><p>There isn’t one.</p><p>Signal Forms are built around your <strong>data model</strong>, not a hierarchy of form objects.</p><p>Once you adopt this mindset:</p><ul><li>Dynamic forms become simpler</li><li>Validation becomes cleaner</li><li>State becomes predictable</li><li>Angular becomes more reactive</li></ul><p>If you’re starting a new Angular 22 project, this is a mental shift worth embracing early.</p><p>It’s not just a new API — it’s a new way of thinking about forms.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=395fb9f881fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Modern File Handling in Angular 22 Using Signal Forms]]></title>
            <link>https://medium.com/@mlglobtech/modern-file-handling-in-angular-22-using-signal-forms-9e4c78054dae?source=rss-735cb4571c6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e4c78054dae</guid>
            <category><![CDATA[angular-reactive-form]]></category>
            <category><![CDATA[angular-file-up]]></category>
            <category><![CDATA[angular-signal-forms]]></category>
            <category><![CDATA[angular]]></category>
            <dc:creator><![CDATA[MLGLOBTECH]]></dc:creator>
            <pubDate>Thu, 25 Jun 2026 06:07:54 GMT</pubDate>
            <atom:updated>2026-06-30T13:47:56.042Z</atom:updated>
            <content:encoded><![CDATA[<h3>Build a reactive file upload flow with validation, HTTP communication, and modern Angular patterns.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MZPHTmP4fplV8SsXj4knmw.png" /></figure><p>File uploads are one of those features every Angular application eventually needs. Whether you’re uploading profile pictures, invoices, PDFs, or media assets, the implementation usually ends up being more complex than expected.</p><p>Most tutorials still demonstrate file uploads with Reactive Forms, but Angular 22 introduces <strong>Signal Forms</strong>, a modern API that makes form state easier to manage while keeping your code reactive and type-safe.</p><p>In this article, we’ll build a simple file handling flow using <strong>Angular 22 Signal Forms</strong> that covers:</p><ul><li>Selecting files</li><li>Client-side validation</li><li>Displaying validation errors</li><li>Uploading files using HttpClient</li></ul><p>Let’s dive in.</p><h3>Why Signal Forms?</h3><p>Reactive Forms have served Angular applications for years, but they often require additional boilerplate such as FormGroup, FormControl, and subscriptions to react to changes.</p><p>Signal Forms simplify this by making your <strong>model the single source of truth</strong>.</p><p>Instead of synchronizing a form with your state, the form is created directly from a signal.</p><pre>const uploadModel = signal({<br>  files: [] as File[]<br>});</pre><pre>const uploadForm = form(uploadModel);</pre><p>Whenever the model changes, the UI stays synchronized automatically.</p><p>No subscriptions.</p><p>No patchValue().</p><p>No valueChanges.</p><h3>Creating the Upload Model</h3><p>We’ll begin with a minimal model that stores the selected files.</p><pre>import { signal } from &#39;@angular/core&#39;;<br><br>export const uploadModel = signal({<br>  files: [] as File[],<br>});</pre><p>Now create a Signal Form.</p><pre>import { form } from &#39;@angular/forms/signals&#39;;<br><br>export const uploadForm = form(uploadModel);</pre><p>The form() function creates a <strong>FieldTree</strong>, giving you strongly typed access to every property in your model.</p><h3>Selecting Files</h3><p>Unlike text inputs, browsers don’t allow binding &lt;input type=&quot;file&quot;&gt; directly to a form field.</p><p>Instead, we handle the file selection event and update our model.</p><pre>onFileSelected(event: Event): void {<br>  const input = event.target as HTMLInputElement;<br><br>if (!input.files) {<br>    return;<br>  }<br>  this.uploadModel.update(model =&gt; ({<br>    ...model,<br>    files: Array.from(input.files),<br>  }));<br>}</pre><p>Template:</p><pre>&lt;input<br>  type=&quot;file&quot;<br>  multiple<br>  accept=&quot;.png,.jpg,.jpeg,.pdf&quot;<br>  (change)=&quot;onFileSelected($event)&quot;<br>&gt;</pre><p>Since the selected files are stored inside the signal model, every dependent UI updates automatically.</p><h3>Validating Selected Files</h3><p>Before sending files to your API, it’s important to validate them on the client.</p><p>A good upload experience usually validates:</p><ul><li>Required selection</li><li>Maximum file size</li><li>Maximum number of files</li><li>Allowed MIME types</li></ul><p>For example:</p><pre>const MAX_SIZE = 5 * 1024 * 1024;<br><br>const ALLOWED_TYPES = [<br>  &#39;image/png&#39;,<br>  &#39;image/jpeg&#39;,<br>  &#39;application/pdf&#39;<br>];</pre><p>You can then filter invalid files before updating the model.</p><pre>const validFiles = Array.from(input.files).filter(file =&gt;<br>  ALLOWED_TYPES.includes(file.type) &amp;&amp;<br>  file.size &lt;= MAX_SIZE<br>);<br><br>this.uploadModel.update(model =&gt; ({<br>  ...model,<br>  files: validFiles,<br>}));</pre><blockquote><em>Client-side validation improves the user experience, but it should never replace server-side validation.</em></blockquote><p>Always validate uploaded files on the backend as well.</p><h3>Displaying Validation State</h3><p>One of my favorite features of Signal Forms is that every field exposes its own reactive state.</p><p>You can access values, errors, and validation status directly.</p><pre>uploadForm.files().value()<br><br>uploadForm.files().errors()<br><br>uploadForm.files().valid()</pre><p>There’s no need to subscribe to changes or manually trigger UI updates.</p><p>Your template simply reacts to the current state.</p><h3>Uploading Files with HttpClient</h3><p>Once validation succeeds, create a FormData object.</p><pre>const formData = new FormData();<br><br>this.uploadModel().files.forEach(file =&gt; {<br>  formData.append(&#39;files&#39;, file);<br>});</pre><p>Sending the request is straightforward.</p><pre>this.http.post(&#39;/api/files/upload&#39;, formData).subscribe({<br>  next: () =&gt; {<br>    console.log(&#39;Files uploaded successfully.&#39;);<br>  },<br>  error: (error) =&gt; {<br>    console.error(error);<br>  }<br>});</pre><p>Using FormData allows the browser to send files as multipart/form-data, which is the standard format expected by most APIs.</p><h3>Why I Like This Approach</h3><p>The complete flow is surprisingly simple.</p><pre>Select Files<br>      │<br>      ▼<br>Validate<br>      │<br>      ▼<br>Update Signal Model<br>      │<br>      ▼<br>Create FormData<br>      │<br>      ▼<br>Send HTTP Request</pre><p>Each step has a single responsibility.</p><p>Your Signal Form manages state.</p><p>HttpClient handles communication.</p><p>The browser handles file selection.</p><p>Everything stays clean and predictable.</p><h3>Best Practices</h3><p>Here are a few recommendations I follow when implementing file uploads:</p><ul><li>Keep the Signal Form model as the single source of truth.</li><li>Validate file size and MIME type before uploading.</li><li>Always validate uploaded files on the server.</li><li>Use FormData instead of manually serializing files.</li><li>Keep HTTP communication inside a dedicated service for larger applications.</li><li>Display meaningful validation messages instead of generic upload failures.</li></ul><h3>Final Thoughts</h3><p>Signal Forms make file handling feel much more natural.</p><p>Instead of managing multiple pieces of form state with FormGroup, FormControl, and subscriptions, you work directly with a reactive model that represents your application&#39;s data.</p><p>For file uploads, this leads to simpler code, better readability, and a cleaner separation between validation, state management, and HTTP communication.</p><p>If you’re starting a new Angular 22 project, Signal Forms are definitely worth exploring — especially for real-world features like file handling.</p><h3>See It in Action</h3><p>The file upload approach covered in this article isn’t just a demo — we’ve implemented these modern Angular patterns in our latest <a href="https://mlglobtech.com/products/document-management-system"><strong>AI-Powered Document Management System</strong></a>.</p><p>Our platform includes secure document uploads, validation, version control, OCR-powered search, AI features, workflow automation, and much more.</p><p>👉 Explore our<strong> </strong><a href="https://mlglobtech.com/products/document-management-system"><strong>Document Management System</strong></a></p><p>Happy coding! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e4c78054dae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Cloud-Based Document Storage Improves Business Continuity]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@mlglobtech/how-cloud-based-document-storage-improves-business-continuity-52b732e5722d?source=rss-735cb4571c6a------2"><img src="https://cdn-images-1.medium.com/max/1693/1*6U16p64UjOBLeVcCuOX2zQ.png" width="1693"></a></p><p class="medium-feed-snippet">In today&#x2019;s digital business environment, data is one of the most valuable assets for any organization. From contracts and invoices to&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@mlglobtech/how-cloud-based-document-storage-improves-business-continuity-52b732e5722d?source=rss-735cb4571c6a------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@mlglobtech/how-cloud-based-document-storage-improves-business-continuity-52b732e5722d?source=rss-735cb4571c6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/52b732e5722d</guid>
            <category><![CDATA[dms]]></category>
            <category><![CDATA[document-management]]></category>
            <dc:creator><![CDATA[MLGLOBTECH]]></dc:creator>
            <pubDate>Sun, 14 Jun 2026 07:18:40 GMT</pubDate>
            <atom:updated>2026-06-14T07:18:40.526Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How AI-Powered Search is Replacing Traditional File Management]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@mlglobtech/how-ai-powered-search-is-replacing-traditional-file-management-c5a49e7a03ef?source=rss-735cb4571c6a------2"><img src="https://cdn-images-1.medium.com/max/1774/1*F8yxdUHyfE1vzmKgqjIS7A.png" width="1774"></a></p><p class="medium-feed-snippet">In today&#x2019;s fast-moving digital world, businesses are generating thousands of files every single day. From invoices and contracts to HR&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@mlglobtech/how-ai-powered-search-is-replacing-traditional-file-management-c5a49e7a03ef?source=rss-735cb4571c6a------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@mlglobtech/how-ai-powered-search-is-replacing-traditional-file-management-c5a49e7a03ef?source=rss-735cb4571c6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5a49e7a03ef</guid>
            <category><![CDATA[dms]]></category>
            <category><![CDATA[document-management]]></category>
            <dc:creator><![CDATA[MLGLOBTECH]]></dc:creator>
            <pubDate>Sat, 13 Jun 2026 05:37:26 GMT</pubDate>
            <atom:updated>2026-06-13T05:37:26.697Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Upload Large Files in Angular Like Enterprise Applications]]></title>
            <link>https://medium.com/@mlglobtech/how-we-built-a-fault-tolerant-chunk-upload-system-in-easydocmgt-angular-net-f6f330b915d5?source=rss-735cb4571c6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6f330b915d5</guid>
            <dc:creator><![CDATA[MLGLOBTECH]]></dc:creator>
            <pubDate>Mon, 11 May 2026 10:01:48 GMT</pubDate>
            <atom:updated>2026-05-20T13:12:18.096Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*x44LtjqsrpEDFRA79s2VkA.png" /></figure><p>I’ll walk you through a <strong>real-world implementation used inside our product —</strong><a href="https://mlglobtech.com/products/document-management-system"><strong> EasyDocMgt</strong></a>.</p><p>This includes chunk upload using <strong>Angular + RxJS + .NET</strong>, with batching, parallel uploads, retry logic, progress tracking, and finalisation.</p><p>The best part: this strategy is already <strong>production-tested and available with full source code inside </strong><a href="https://mlglobtech.com/products/document-management-system"><strong>EasyDocMgt</strong></a>.</p><p><strong>Why We Implemented Chunk Upload in </strong><a href="https://mlglobtech.com/products/document-management-system"><strong>EasyDocMgt</strong></a><strong>?</strong></p><p>Before diving into code, let’s understand the benefits:</p><p>✅ Handles large files efficiently</p><p>✅ Supports retry mechanisms</p><p>✅ Prevents request timeout issues</p><p>✅ Enables parallel uploads for speed</p><p>✅ Improves user experience with progress tracking</p><p><strong>Step 1: Initialise Add Document Version metadata without a file</strong></p><pre>saveDocumentVersion() { <br>  this.documentService.addChunkDocument(this.buildDocumentObject())<br>  .pipe(debounce(() =&gt; timer(3000)))<br>  .subscribe((c: DocumentInfo) =&gt; { <br>      this.document = c; <br>      this.uploadFileInChunks(c.documentVersionId ?? &#39;&#39;); <br>  }); <br>}</pre><p><strong>Explanation</strong></p><ul><li>Creates document metadata first</li><li>Gets documentVersionId from backend</li><li>Starts chunk upload process</li></ul><p><strong>Step 2: Split the file into Chunks</strong></p><pre>uploadFileInChunks(documentVersionId: string) { <br><br> if (!this.fileData) return; <br> const { parallelCalls } = this.commonService.getNetworkSpeed(); <br> const totalChunks = Math.ceil(this.fileData.size / this.chunkSize); <br> const chunkUploads: FormData[] = []; <br> this.progress = 0; <br> this.isLoading = true;</pre><p><strong>Key Concepts</strong></p><ul><li>chunkSize → size of each chunk</li><li>totalChunks → number of chunks</li><li>parallelCalls → concurrency based on network speed</li></ul><p><strong>Step 3: Create Chunk Payload</strong></p><pre>for (let i = 0; i &lt; totalChunks; i++) { <br>  const start = i * this.chunkSize; <br>  const end = Math.min(start + this.chunkSize, this.fileData.size); <br>  const chunk = this.fileData.slice(start, end); <br>  const formData = new FormData(); <br>  formData.append(&#39;file&#39;, chunk); <br>  formData.append(&#39;chunkIndex&#39;, i.toString()); <br>  formData.append(&#39;size&#39;, this.chunkSize.toString()); <br>  formData.append(&#39;totalChunks&#39;, totalChunks.toString()); <br>  formData.append(&#39;extension&#39;, this.extension); <br>  formData.append(&#39;documentVersionId&#39;, documentVersionId); <br>  chunkUploads.push(formData); <br>}</pre><p><strong>Step 4: Upload Chunks with Parallel + Batch Control</strong></p><pre> from(chunkUploads)<br>                 .pipe( <br>                   bufferCount(parallelCalls), <br>                   concatMap((batch) =&gt; from(batch)<br>                    .pipe( <br>                          tap(() =&gt; console.log(&#39;Processing batch:&#39;, batch)), <br>                          mergeMap( (formData) =&gt; this.uploadChunk(formData),parallelCalls), <br>                        ), <br>                    ), <br>                   )</pre><p><strong>How This Works</strong></p><ul><li>bufferCount → groups chunks</li><li>concatMap → processes batches sequentially</li><li>mergeMap → uploads chunks in parallel</li></ul><p>👉 Result: Controlled + high-performance upload</p><p><strong>Step 5: Track Upload Progress</strong></p><pre>.subscribe({ next: () =&gt;{ <br>  this.progress = Math.min( this.progress + 100 / totalChunks, 100 ); <br>  this.cd.markForCheck(); <br>},</pre><p><strong>Step 6: Finalise Upload</strong></p><pre>complete: () =&gt; { <br>this.isLoading = false; <br>this.progress = 100; <br>this.markChunkAsUploaded(); <br>this.cd.markForCheck(); <br>},</pre><p><strong>Step 7: Error Handling</strong></p><pre>error: () =&gt; { <br>this.markChunkAsUploaded(false); <br>this.isLoading = false; <br>this.cd.markForCheck(); <br>}</pre><p><strong>Step 8: Upload API Call</strong></p><pre>uploadChunk(formData: FormData): Observable&lt;DocumentChunk | CommonError&gt; { <br>return this.documentService.uploadChunkDocument(formData); <br>}</pre><p><strong>Step 9: Retry Failed Chunks (Exponential Backoff)</strong></p><pre>uploadChunkDocument( documentChunkForm: FormData, ): Observable&lt;DocumentChunk | CommonError&gt; { <br>const url = `document/chunk/upload`; <br>return this.httpClient.post&lt;DocumentChunk&gt;(url, documentChunkForm)<br>.pipe( <br>    retry({ <br>          count: this.maxRetries, <br>          delay: (error, retryCount) =&gt; { <br>            console.warn(`Retrying chunk... Attempt ${retryCount}`); <br>            return timer(Math.pow(2, retryCount) * 1000); <br>          }, <br>        }), <br>      ); <br>}</pre><p><strong>Why This Matters</strong></p><p>Real-world failures:</p><ul><li>Network drops</li><li>API timeouts</li><li>Temporary server issues</li></ul><p>👉 This ensures the upload doesn’t fail due to minor issues.</p><p><strong>Retry Pattern</strong></p><p><em>1st retry → 1 sec</em></p><p><em>2nd retry → 2 sec</em></p><p><em>3rd retry → 4 sec</em></p><p><strong>Step 10: Notify Backend to upload the document version to Mark as complete</strong></p><pre>markChunkAsUploaded(flag = true) { <br>this.isLoading = true; <br>this.commonService.markChunkAsUploaded(this.document.id ?? &#39;&#39;, flag)<br>.subscribe(<br>{ <br>  next: () =&gt; { <br>  <br>    this.isLoading = false; <br>  <br>  }, <br>  error: () =&gt; { <br>    this.isLoading = false; <br>    }, <br>}); <br>}</pre><h3><strong>Performance Optimisations</strong></h3><h4>✅ Dynamic Parallel Upload</h4><pre>const { parallelCalls } = this.commonService.getNetworkSpeed();</pre><h4>✅ Batch Processing</h4><p>Prevents server overload</p><h4>✅ Retry with Backoff</h4><p>Improves reliability</p><h3>Final Thoughts (From EasyDocMgt Implementation)</h3><p>Inside <a href="https://mlglobtech.com/products/document-management-system">EasyDocMgt</a>, this chunk upload strategy is already powering real-world document handling with:</p><p>📂 Large file uploads (PDFs, videos, CAD, etc.)</p><p>🔁 Reliable retry mechanisms</p><p>⚡ High-performance parallel uploads</p><p>🔒 Secure document versioning</p><p>This is not just a demo or concept — it’s a <strong>production-ready system used in a real DMS product</strong>.</p><p>👉 If you’re building a <strong>Document Management System, cloud storage, or enterprise application</strong>, chunk upload with retry is not optional — it’s a <strong>core architectural decision</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6f330b915d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>