<?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 Prathamesh Borse on Medium]]></title>
        <description><![CDATA[Stories by Prathamesh Borse on Medium]]></description>
        <link>https://medium.com/@prathameshborse?source=rss-875412ce68fb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-a81Rn36ghOeZaMzOrQ85g.jpeg</url>
            <title>Stories by Prathamesh Borse on Medium</title>
            <link>https://medium.com/@prathameshborse?source=rss-875412ce68fb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 10:15:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prathameshborse/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[What is a Template-Driven Form in Angular]]></title>
            <link>https://javascript.plainenglish.io/what-is-a-template-driven-form-in-angular-effc7cff6a2c?source=rss-875412ce68fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/effc7cff6a2c</guid>
            <category><![CDATA[application-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[forms]]></category>
            <category><![CDATA[angular]]></category>
            <dc:creator><![CDATA[Prathamesh Borse]]></dc:creator>
            <pubDate>Sat, 08 Nov 2025 12:10:50 GMT</pubDate>
            <atom:updated>2025-11-10T05:49:10.936Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Template Driven Form and Reactive Forms In Angular" src="https://cdn-images-1.medium.com/max/860/0*qe-giX4caGA6Yzo_" /></figure><p>Forms are everywhere — from sign-ups and contact pages to bookings and surveys. While learning Angular this week, I explored how it manages forms and found that it provides two main approaches: <strong>Template-Driven</strong> and <strong>Reactive</strong>.</p><p><strong>Template-Driven Forms</strong><br>Template-driven forms use two-way data binding to update the data model in the component as changes are made template and vice versa. Template-driven forms are heavy on the component template. Template-driven forms are suitable for simple scenarios, but Unit testing is a bit challenging in these forms.</p><p><strong>Reactive Forms</strong><br>The code and logic reside in the component class, and here in reactive forms, we don’t have two-way data binding. The reactive forms are useful when we have a complex scenario and the fields are dynamic, and we also want to have dynamic validation on the fields; there, we will use reactive forms.</p><p>Now, let&#39;s see how to create and use template-driven forms in Angular.</p><p>Step 1: Create a new Angular Project</p><pre>ng new template-driven-forms</pre><p>This command will create a new Angular project named template-driven forms.</p><p>Step 2: Go to the <strong>app.html</strong> template file and change your code to the code below.</p><pre>&lt;form&gt;<br>  &lt;div class=&quot;container-fluid&quot;&gt;<br>    &lt;h1&gt;Bootcamp Enrollment form&lt;/h1&gt;<br>    &lt;form&gt;<br>      &lt;hr /&gt;<br><br>      &lt;div class=&quot;form-group&quot;&gt;<br>        &lt;label&gt;Name:&lt;/label&gt;<br>        &lt;input required type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;userName&quot; /&gt;<br>      &lt;/div&gt;<br><br>      &lt;div class=&quot;form-group&quot;&gt;<br>        &lt;label&gt;Email:&lt;/label&gt;<br>        &lt;input required type=&quot;email&quot; class=&quot;form-control&quot; name=&quot;email&quot; /&gt;<br>      &lt;/div&gt;<br><br>      &lt;div class=&quot;form-group&quot;&gt;<br>        &lt;label&gt;Phone:&lt;/label&gt;<br>        &lt;input required type=&quot;tel&quot; class=&quot;form-control&quot; name=&quot;phone&quot; /&gt;<br>      &lt;/div&gt;<br><br>      &lt;button class=&quot;btn btn-primary&quot; type=&quot;submit&quot;&gt;Submit form&lt;/button&gt;<br>    &lt;/form&gt;<br>  &lt;/div&gt;<br>&lt;/form&gt;</pre><p>This will create a simple form in your Angular project, which we will use to bind it with the User Model and then send it to the server.</p><p>Step 3: Binding the Above Form Data with <strong>ngForm</strong>. <br>Use the code below to make changes inside the <strong>app.ts </strong>component file.</p><p><strong>NgForm: </strong>NgForm is a directive used in Angular Template-driven forms. It automatically creates a <strong>FormGroup </strong>instance to track the state, values, and validation.</p><p>Apply #userForm=”ngForm” in the form tag like below.</p><pre>&lt;form #userForm=&quot;ngForm&quot; *ngIf=&quot;!submitted&quot; (ngSubmit)=&quot;onSubmit()&quot; novalidate&gt;<br>  &lt;div class=&quot;container-fluid&quot;&gt;<br>    &lt;h1&gt;Bootcamp Enrollment form&lt;/h1&gt;<br>    &lt;form&gt;<br>      &lt;hr /&gt;<br><br>      &lt;div class=&quot;form-group&quot;&gt;<br>        &lt;label&gt;Name:&lt;/label&gt;<br>        &lt;input required type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;userName&quot; /&gt;<br>      &lt;/div&gt;<br><br>      &lt;div class=&quot;form-group&quot;&gt;<br>        &lt;label&gt;Email:&lt;/label&gt;<br>        &lt;input required type=&quot;email&quot; class=&quot;form-control&quot; name=&quot;email&quot; /&gt;<br>      &lt;/div&gt;<br><br>      &lt;div class=&quot;form-group&quot;&gt;<br>        &lt;label&gt;Phone:&lt;/label&gt;<br>        &lt;input required type=&quot;tel&quot; class=&quot;form-control&quot; name=&quot;phone&quot; /&gt;<br>      &lt;/div&gt;<br><br>      &lt;button class=&quot;btn btn-primary&quot; type=&quot;submit&quot;&gt;Submit form&lt;/button&gt;<br>    &lt;/form&gt;<br>  &lt;/div&gt;<br>&lt;/form&gt;</pre><p>Step 4: Create <strong>Model</strong> Class and bind form data. <br>Create the following model in your project to bind form data with it. Use the command to create a <strong>model</strong> inside your directory.</p><pre>ng g class register</pre><p>It will create a class named register inside your directory. Now, inside that class, you need to create the variable names that you are using inside your form.</p><pre>export class User {<br>    constructor (<br>        public name: string,<br>        public email: string,<br>        public phone: number<br>    ) {} // typescript shorthand for defining and initializing constructor <br>}</pre><p>Once your <strong>model</strong> is now, it’s time to bind our form data with the class <strong>User</strong> in the root app component.</p><pre>import { Component} from &#39;@angular/core&#39;;<br>import { FormsModule } from &#39;@angular/forms&#39;;<br>import { User } from &#39;./user&#39;;<br><br>@Component({<br>  imports: [FormsModule],<br>  selector: &#39;app-root&#39;,<br>  templateUrl: &#39;./app.html&#39;,<br>  styleUrl: &#39;./app.css&#39;,<br>})<br><br>export class App {<br>  userModel = new User(&#39;Demo&#39;, &#39;demo@gmail.com&#39;, 9876543210);<br>  submitted: boolean = false;<br><br>  constructor() {}<br><br>  onSubmit() {<br>    console.log(this.userModel.value);<br>  };<br>}</pre><p>We have provided dummy values in the model. When the form loads then all the input fields will contain those values inside them, and also <strong>import FormsModule in the root app component.</strong></p><p>Step 5: Bind all from the input fields with the <strong>userModel</strong> so we can submit all those values to the server.</p><pre>&lt;form #userForm=&quot;ngForm&quot; *ngIf=&quot;!submitted&quot; (ngSubmit)=&quot;onSubmit()&quot; novalidate&gt;<br>  &lt;div class=&quot;container-fluid&quot;&gt;<br>    &lt;h1&gt;Bootcamp Enrollment form&lt;/h1&gt;<br>    &lt;form&gt;<br>      &lt;hr /&gt;<br><br>      &lt;div class=&quot;form-group&quot;&gt;<br>        &lt;label&gt;Name:&lt;/label&gt;<br>        &lt;input #name=&quot;ngModel&quot; [(ngModel)]=&quot;userModel.name&quot; required type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;userName&quot; /&gt;<br>      &lt;/div&gt;<br><br>      &lt;div class=&quot;form-group&quot;&gt;<br>        &lt;label&gt;Email:&lt;/label&gt;<br>        &lt;input #email=&quot;ngModel&quot; [(ngModel)]=&quot;userModel.email&quot; required type=&quot;email&quot; class=&quot;form-control&quot; name=&quot;email&quot; /&gt;<br>      &lt;/div&gt;<br><br>      &lt;div class=&quot;form-group&quot;&gt;<br>        &lt;label&gt;Phone:&lt;/label&gt;<br>        &lt;input #name=&quot;phone&quot; [(ngModel)]=&quot;userModel.phone&quot; required type=&quot;tel&quot; class=&quot;form-control&quot; name=&quot;phone&quot; /&gt;<br>      &lt;/div&gt;<br><br>      &lt;button [disabled]=&quot;userForm.form.invalid&quot; class=&quot;btn btn-primary&quot; type=&quot;submit&quot;&gt;Submit form&lt;/button&gt;<br>    &lt;/form&gt;<br>  &lt;/div&gt;<br>&lt;/form&gt;</pre><p>Also, here we made the button disabled till the time all the form fields are touched and values are updated.</p><p>So, this is how we can create template-driven forms inside Angular and use them. Next week, we will learn about how to use reactive forms and submit form data to the server.</p><p>In this guide, we explored how Angular’s <strong>template-driven forms</strong> simplify form handling with two-way data binding and automatic form control creation.</p><p>Understanding this foundation makes it much easier to dive into <strong>Reactive Forms</strong>, which we’ll explore in the next article — including validation and dynamic controls.</p><p>💬 Have questions or suggestions? Drop them in the comments below.</p><p>🚀 Follow me on <a href="https://www.linkedin.com/in/prathameshborse/">LinkedIn</a>, <a href="https://x.com/imprathamesh01">Twitter</a>, or <a href="https://github.com/prathamesh-borse/">GitHub</a> so you don’t miss the next post in this Angular Forms series.</p><p>Thanks for reading, and happy coding! 💻</p><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=effc7cff6a2c" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/what-is-a-template-driven-form-in-angular-effc7cff6a2c">What is a Template-Driven Form in Angular</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learn Angular: 8 Essential Concepts Every Beginner Must Know]]></title>
            <link>https://blog.stackademic.com/learn-angular-8-essential-concepts-every-beginner-must-know-8988010b1077?source=rss-875412ce68fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/8988010b1077</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[angular-concepts]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[application-development]]></category>
            <dc:creator><![CDATA[Prathamesh Borse]]></dc:creator>
            <pubDate>Sat, 11 Oct 2025 10:15:32 GMT</pubDate>
            <atom:updated>2025-10-13T11:58:53.956Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Angular Logo" src="https://cdn-images-1.medium.com/max/1024/0*A_AMW9SOagWJY1pd.png" /></figure><p>Angular is a powerful JavaScript framework for building dynamic web applications. This is week 2, and I will show what I have learned in Angular and explain the concepts in a simple, beginner-style way.</p><p>So let’s dive in!</p><p><strong>1. Components</strong></p><p>Components are the building blocks of any Angular application. Components consist of parts such as <strong>Template: </strong>Template, which represents the view and which is made up of HTML + CSS, <strong>Class: </strong>Class contains the code which supports the view and which is created using Typescript. Let’s see how it works in practice.</p><p><strong>Example:</strong></p><pre>import { Component } from &#39;@angular/core&#39;;<br><br>@Component({<br>  selector: &#39;app-about-component&#39;,<br>  imports: [],<br>  template: `<br>    &lt;p&gt;<br>      about-component works!<br>    &lt;/p&gt;<br>  `,<br>  styles: ``<br>})<br><br>export class AboutComponent {<br><br>}</pre><p>Here we have created a simple component.</p><p><strong>2. Interpolation</strong></p><p>Interpolation can work with String values. The property or the expression within double curly braces is known as Interpolation in Angular. To display the value of a variable, we use <strong>{{ variable_name }} </strong>like this when we display. Let’s see how it works in practice.</p><p><strong>Example:</strong></p><pre>import { Component } from &#39;@angular/core&#39;;<br>import { NgClass } from &#39;@angular/common&#39;;<br>import { NgStyle } from &#39;@angular/common&#39;;<br><br>@Component({<br>  selector: &#39;app-test-component&#39;,<br>  standalone: true,<br>  imports: [NgClass, NgStyle],<br>  template: `<br>            &lt;h2&gt; Welcome {{name}} &lt;/h2&gt; <br>            `,<br>    styles: []<br>})<br><br>export class TestComponent {<br>  public name = &quot;Nilesh&quot;;<br>}</pre><p>Here, in this example, we have created the name variable and displayed it in the template using an interpolation like <strong>{{ name }}</strong>.</p><p><strong>3. Property Binding</strong></p><p>Property binding allows you to dynamically change element properties. Property binding in Angular means we are binding to the property DOM. Let’s see how it works in practice.</p><p><strong>Example:</strong></p><pre>import { Component } from &#39;@angular/core&#39;;<br><br>@Component({<br>  selector: &#39;app-root&#39;,<br>  template: `<br>    &lt;h2&gt;Property Binding Example&lt;/h2&gt;<br>    &lt;img [src]=&quot;imageUrl&quot; [alt]=&quot;imageAltText&quot;&gt;<br>  `<br>})<br><br>export class AppComponent {<br>  imageUrl = &#39;https://angular.io/assets/images/logos/angular/angular.png&#39;;<br>  imageAltText = &#39;Angular Logo&#39;;<br>}</pre><p>Here in this example, [src]=&quot;imageUrl&quot; → binds the src property of &lt;img&gt; to the imageUrl variable in the component. When imageUrl changes in the component, the image updates automatically in the template.</p><p><strong>4. Structural Directives</strong></p><p>Using structural directives, we can add or remove HTML elements. Structural directives allow you to conditionally render elements. The structural directives are of many types, as follows:</p><ol><li>ngIf</li><li>ngSwitch</li><li>ngFor</li></ol><p><strong>Example:</strong></p><pre>import { CommonModule } from &#39;@angular/common&#39;;<br>import { Component } from &#39;@angular/core&#39;;<br>import { FormsModule } from &#39;@angular/forms&#39;;<br><br>@Component({<br>  selector: &#39;app-test&#39;,<br>  standalone: true,<br>  imports: [FormsModule, CommonModule],<br>  template: `<br>    &lt;h2 *ngIf=&quot;displayName&quot;&gt;Prathamesh Borse&lt;/h2&gt;<br>  `,<br>  styleUrl: &#39;./test.css&#39;<br>})<br><br>export class Test {<br>  displayName = false<br>}</pre><p>Here in this component, we are hiding or unhiding the H2 Property in the component using the variable displayName.</p><p><strong>5. Component Interaction</strong></p><p>In Angular, component interaction means we wanted to communicate from the parent component to the child component and same from child component to parent component. The communication between the components happens using the <strong>@Input </strong>and<strong> @Output </strong>Decorators. Let’s see how it works in practice.</p><p><strong>Example:</strong></p><pre>// app.ts = root module angular application<br>// Parent Component <br>import { Component, signal } from &#39;@angular/core&#39;;<br>import { Test } from &#39;./test/test&#39;;<br><br>@Component({<br>  selector: &#39;app-root&#39;,<br>  imports: [Test],<br>  standalone: true,<br>  templateUrl: &#39;./app.html&#39;,<br>  styleUrl: &#39;./app.css&#39;<br>})<br><br>export class App {<br>  protected readonly title = signal(&#39;component-interaction&#39;);<br>  public name = &quot;Prathamesh&quot;;<br>}</pre><pre>&lt;!-- app.html file --&gt;<br>&lt;!-- Sharing data to the child app-test component using parentData --&gt;<br>&lt;main&gt;<br>  &lt;div&gt;<br>    &lt;h1&gt;Hello, {{ title() }}&lt;/h1&gt;<br>    &lt;div&gt;<br>      &lt;app-test [parentData]=&quot;name&quot;&gt;&lt;/app-test&gt;<br>    &lt;/div&gt;<br>  &lt;/div&gt;<br>&lt;/main&gt;</pre><pre>// test.ts = test component<br>import { Component, Input } from &#39;@angular/core&#39;;<br><br>@Component({<br>  selector: &#39;app-test&#39;,<br>  standalone: true,<br>  imports: [],<br>  template: `<br>    &lt;h2&gt;<br>      {{ &quot;Hello, &quot; +  parentData }}<br>    &lt;/h2&gt;<br>    `,<br>})<br><br>export class Test {<br>  @Input() public parentData!: string;<br>}</pre><p><strong>6. Pipes in Angular</strong></p><p>Pipes are used in Angular to transform the data. Angular has built-in pipes such as <strong>lowercase, uppercase, </strong>and <strong>date, </strong>but we need to import them from the @angular/common module in Angular 21. Let’s see how it works in practice.</p><pre>&lt;h2&gt;{{ name | lowercase }}&lt;/h2&gt;<br>&lt;h2&gt;{{ name | uppercase }}&lt;/h2&gt;</pre><p>Here, in this example, we are transforming the data name we have received to lowercase and uppercase accordingly.</p><p><strong>7. Services and Dependency Injection</strong></p><p>Services in Angular are used for managing and sharing data across multiple Components. Dependency injection in Angular is used to manage and inject services where we need them. Let’s see how it works in practice.</p><pre>// UserService<br>import { Injectable } from &#39;@angular/core&#39;;<br><br>@Injectable({<br>  providedIn: &#39;root&#39; // makes the service available app-wide<br>})<br><br>export class UserService {<br>  private users = [&#39;Alice&#39;, &#39;Bob&#39;, &#39;Charlie&#39;];<br><br>  getUsers() {<br>    return this.users;<br>  }<br>}</pre><pre>// UserListComponent<br>import { Component, OnInit } from &#39;@angular/core&#39;;<br>import { UserService } from &#39;../user.service&#39;;<br><br>@Component({<br>  selector: &#39;app-user-list&#39;,<br>  templateUrl: &#39;./user-list.component.html&#39;<br>})<br><br>export class UserListComponent implements OnInit {<br>  users: string[] = [];<br><br>  constructor(private userService: UserService) {}<br><br>  ngOnInit() {<br>    this.users = this.userService.getUsers();<br>  }<br>}</pre><pre>&lt;h3&gt;User List&lt;/h3&gt;<br>&lt;ul&gt;<br>  &lt;li *ngFor=&quot;let user of users&quot;&gt;{{ user }}&lt;/li&gt;<br>&lt;/ul&gt;</pre><p>Here, UserService which holds reusable logic/data. The UserListComponent injects the service using Dependency Injection. The template displays the data that is provided by the service.</p><p><strong>8. Routing</strong></p><p>Using Angular, we can create a single-page application with multiple routes. We can define the route inside the app.routes.ts file, which maps URLs with components. Let’s see how it works in practice.</p><pre>import { Routes } from &#39;@angular/router&#39;;<br>import { HomeComponent } from &#39;./home/home&#39;;<br>import { AboutComponent } from &#39;./about/about&#39;;<br>import { ContactComponent } from &#39;./contact/contact&#39;;<br><br>export const routes: Routes = [<br>  { path: &#39;&#39;, component: HomeComponent },<br>  { path: &#39;about&#39;, component: AboutComponent },<br>  { path: &#39;contact&#39;, component: ContactComponent },<br>  { path: &#39;**&#39;, redirectTo: &#39;&#39; },<br>];</pre><p>With this setup, navigating to /home renders the AboutComponent, and /about renders the ContactComponent.</p><p><strong><em>Conclusion</em></strong></p><p><em>In this overview, we explored the </em><strong><em>8 core Angular concepts</em></strong><em> — Components, Data Binding, Directives, Services, Dependency Injection, Pipes, Component Interaction, and Routing.<br>These fundamentals form the </em><strong><em>foundation of every Angular application</em></strong><em> and will help you both in interviews and real-world projects.</em></p><p><em>Keep practicing small examples of each concept — that’s how Angular truly “clicks.”</em></p><p>💡 <strong>Coming Up Next (Week 3):</strong> <em>Angular Forms and Validation — Simplified!</em><br> 📩 <em>Follow me on Medium</em> to stay updated on the next post in this <strong>Angular for Beginners</strong> series.<br> 💬 <em>Comment below</em> which Angular concept you found the most confusing — I’ll include it in future deep-dives!</p><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8988010b1077" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/learn-angular-8-essential-concepts-every-beginner-must-know-8988010b1077">Learn Angular: 8 Essential Concepts Every Beginner Must Know</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started with Angular: My First Learnings as a Beginner]]></title>
            <link>https://blog.stackademic.com/getting-started-with-angular-my-first-learnings-as-a-beginner-6e701b5fdb9f?source=rss-875412ce68fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e701b5fdb9f</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[angular]]></category>
            <dc:creator><![CDATA[Prathamesh Borse]]></dc:creator>
            <pubDate>Thu, 02 Oct 2025 10:50:39 GMT</pubDate>
            <atom:updated>2025-10-07T17:39:53.708Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yX3kdhpEdYw3DAwoBFreMQ.png" /></figure><p><strong>Introduction</strong></p><p>When I first looked at Angular, it felt overwhelming. Modules, decorators, templates, TypeScript — where do you even start?<br>But as I broke it down into smaller concepts, I realized Angular has a clear structure that makes it much easier to understand.</p><p>Here are my first key learnings 👇</p><h3>1. The Building Blocks of Angular Components</h3><p>Every Angular component is made of three parts:</p><ul><li><strong>Template (HTML):</strong> Defines what the user sees.</li><li><strong>Class (TypeScript):</strong> Handles the logic.</li><li><strong>Metadata:</strong> Provides configuration about the component (like its selector).</li></ul><h3>2. The 4 Files Generated by Angular</h3><p>When you create a new component using the CLI command:</p><pre>ng generate component new-component</pre><p>Angular creates 4 files for you:</p><ol><li><strong>HTML file (.html):</strong> UI template</li><li><strong>Class file (.ts):</strong> Business logic</li><li><strong>Spec file (.spec.ts):</strong> Unit tests</li><li><strong>CSS/SCSS file (.css/.scss):</strong> Styling</li></ol><p>This structure makes each component self-contained and modular.</p><h3>3. The Flow of an Angular Application</h3><p>Angular has a clear entry point and flow:</p><ul><li><strong>main.ts</strong> → the starting point of the application.</li><li><strong>app.module.ts</strong> → the root module where components are declared.</li><li><strong>app.component.ts</strong> → the root component that loads first.</li></ul><p>When you create new components, you must <strong>declare them in the module</strong> and <strong>use their selector</strong> inside templates to render them.</p><figure><img alt="Angular App Flow Diagram" src="https://cdn-images-1.medium.com/max/1024/0*7o7LfK3gph_uAsg8" /></figure><h3>4. Binding in Angular</h3><p>Angular provides powerful ways to connect your UI and logic:</p><ul><li><strong>Event Binding</strong> → listen to user actions.</li><li><strong>Class Binding</strong> → dynamically apply CSS classes.</li><li><strong>Style Binding</strong> → change inline styles dynamically.</li></ul><h3>Conclusion</h3><p>Learning Angular step by step made me realize it’s not as intimidating as it looks. Once you understand how components, files, and the app flow connect, everything else starts to make sense.</p><p>This is just the beginning of my Angular journey 🚀<br> If you’re also learning Angular, I’d love to hear — <br> 👉 What was the concept that first made Angular “click” for you?</p><p>#Angular #WebDevelopment #Frontend #LearningJourney</p><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e701b5fdb9f" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/getting-started-with-angular-my-first-learnings-as-a-beginner-6e701b5fdb9f">Getting Started with Angular: My First Learnings as a Beginner</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>