<?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 ManpreetKaur on Medium]]></title>
        <description><![CDATA[Stories by ManpreetKaur on Medium]]></description>
        <link>https://medium.com/@manpreetkaur6311062?source=rss-eaff65c3e053------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jgcNpW9sTCBStNqAQAkfYg.jpeg</url>
            <title>Stories by ManpreetKaur on Medium</title>
            <link>https://medium.com/@manpreetkaur6311062?source=rss-eaff65c3e053------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 11:09:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@manpreetkaur6311062/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[System Design Interview Questions & Answers for Angular Web Applications]]></title>
            <link>https://medium.com/@manpreetkaur6311062/system-design-interview-questions-answers-for-angular-web-applications-55af77085445?source=rss-eaff65c3e053------2</link>
            <guid isPermaLink="false">https://medium.com/p/55af77085445</guid>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[ManpreetKaur]]></dc:creator>
            <pubDate>Mon, 10 Aug 2026 22:42:30 GMT</pubDate>
            <atom:updated>2026-08-10T22:42:30.555Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>A comprehensive guide covering architecture, scalability, performance, security, and engineering trade-offs for frontend system design interviews.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oHyqsjsFhU1_0Z3EppeXqQ.png" /><figcaption>System Design</figcaption></figure><h3>Table of Contents</h3><ol><li>Application Architecture</li><li>State Management</li><li>Performance &amp; Optimization</li><li>Scalability &amp; Modularity</li><li>Routing &amp; Navigation</li><li>API Communication &amp; Data Layer</li><li>Authentication &amp; Security</li><li>Testing Strategy</li><li>Build, Deployment &amp; CI/CD</li><li>Micro-Frontends</li><li>Accessibility &amp; Internationalisation</li><li>Observability &amp; Error Handling</li><li>Design System &amp; Component Library</li><li>Real-Time Features</li><li>Caching &amp; Offline Support</li></ol><h3>1. Application Architecture</h3><h3>Q1: How would you design the high-level architecture of a large-scale Angular application?</h3><p><strong>Answer:</strong></p><p>A large-scale Angular application should follow a layered, domain-driven architecture:</p><pre>src/<br>├── app/<br>│   ├── core/               # Singleton services, interceptors, guards<br>│   ├── shared/             # Reusable components, pipes, directives, models<br>│   ├── features/           # Feature modules (lazy-loaded)<br>│   │   ├── dashboard/<br>│   │   ├── orders/<br>│   │   └── users/<br>│   └── layout/             # Shell, header, sidebar, footer<br>├── assets/<br>└── environments/</pre><p><strong>Key principles:</strong></p><ul><li><strong>Core Module</strong>: Imported once in AppModule. Contains singleton services (auth, logging, HTTP interceptors).</li><li><strong>Shared Module</strong>: Imported in every feature module. Contains common UI components, pipes, and directives. Never contains services.</li><li><strong>Feature Modules</strong>: Each business domain is encapsulated in its own module. Lazy-loaded for performance.</li><li><strong>Barrel files</strong> (index.ts): Control public API exposure per module.</li></ul><p><strong>Dependency flow:</strong> Feature → Shared → Core → External Libraries. Features never import from other features directly (use a shared service or events bus instead).</p><h3>Q2: When would you choose a monolithic Angular app vs micro-frontends?</h3><p><strong>Answer:</strong></p><p>FactorMonolithMicro-FrontendsTeam size1–5 developers5+ independent teamsDeploy cycleSingle releaseIndependent per domainTech diversityOne frameworkMixed frameworks possibleStartup costLowHigh (tooling, contracts)Shared stateTrivialComplex (event bus / shared libs)</p><p><strong>Choose monolith when:</strong> teams are co-located, feature coupling is high, or the product is early-stage.</p><p><strong>Choose micro-frontends when:</strong> different teams own distinct bounded contexts, independent deployability is critical, or scale demands it. Angular’s approach here is typically Module Federation (via Webpack 5 / @angular-architects/module-federation).</p><h3>Q3: What is the role of NgModule vs Standalone Components in Angular&#39;s architecture?</h3><p><strong>Answer:</strong></p><p><strong>NgModule (traditional):</strong></p><ul><li>Explicit declaration boundary</li><li>Controls which declarations are visible to which modules</li><li>Ideal for large teams where encapsulation must be enforced</li></ul><p><strong>Standalone Components (Angular 14+):</strong></p><ul><li>Components declare their own imports</li><li>No module boilerplate</li><li>Simpler unit testing</li><li>Enable tree-shakable dependency injection</li></ul><p><strong>Architectural recommendation:</strong></p><p>New greenfield projects should use <strong>standalone components</strong> throughout. Existing NgModule-based apps can migrate incrementally. The router can lazy-load both standalone components and NgModules.</p><pre>// Standalone component<br>@Component({<br>  standalone: true,<br>  imports: [CommonModule, ReactiveFormsModule, MatButtonModule],<br>  selector: &#39;app-user-form&#39;,<br>  templateUrl: &#39;./user-form.component.html&#39;<br>})<br>export class UserFormComponent {}</pre><h3>2. State Management</h3><h3>Q4: How do you decide between local component state, a service-based store, and NgRx?</h3><p><strong>Answer:</strong></p><p>Use a decision matrix based on scope and complexity:</p><p>State typeSolutionEphemeral UI state (open/closed)Component local stateShared across sibling/parentService with BehaviorSubject / signalApp-wide (user session, cart)Service-based singleton storeComplex async flows + undo/time-travelNgRx or NGXSLarge teams needing strict contractsNgRx with Entity + Effects</p><p><strong>Simple service-based store example:</strong></p><pre>@Injectable({ providedIn: &#39;root&#39; })<br>export class CartStore {<br>  private _items = signal&lt;CartItem[]&gt;([]);<br>  readonly items = this._items.asReadonly();<br>  readonly total = computed(() =&gt;<br>    this._items().reduce((sum, i) =&gt; sum + i.price * i.qty, 0)<br>  );</pre><pre>  add(item: CartItem) {<br>    this._items.update(prev =&gt; [...prev, item]);<br>  }<br>}</pre><p><strong>Use NgRx when:</strong></p><ul><li>Side effects are complex (optimistic updates, polling, WebSocket sync)</li><li>Debugging requires Redux DevTools time-travel</li><li>Multiple teams share global state contracts</li></ul><h3>Q5: How does Angular Signals change state management?</h3><p><strong>Answer:</strong></p><p>Signals (stable in Angular 17) are a <strong>reactive primitive</strong> that enable fine-grained change detection without Zone.js and RxJS ceremony.</p><p><strong>Key APIs:</strong></p><ul><li>signal(value) — writable reactive value</li><li>computed(() =&gt; ...) — derived value, memoised</li><li>effect(() =&gt; ...) — side-effect that re-runs when dependencies change</li></ul><p><strong>Impact on architecture:</strong></p><ol><li><strong>Zone-less applications</strong> — provideExperimentalZonelessChangeDetection() + signals = smaller bundles and faster CD.</li><li><strong>Simpler local state</strong> — replaces BehaviorSubject for most component-level state.</li><li><strong>Interop with RxJS</strong> — toSignal() and toObservable() bridges both worlds.</li></ol><p><strong>Design consideration:</strong> Keep signals in services for shared state; keep RxJS for HTTP, complex async operators (switchMap, debounceTime), and WebSockets.</p><h3>Q6: How would you handle optimistic updates in an Angular app?</h3><p><strong>Answer:</strong></p><p><strong>Optimistic update flow:</strong></p><ol><li>Immediately update the local state/store before the API call.</li><li>Fire the HTTP request.</li><li>On success: confirm (no UI change needed).</li><li>On failure: rollback to the previous state and show an error.</li></ol><p><strong>NgRx implementation:</strong></p><pre>// Action<br>updateUser = createAction(&#39;[User] Update&#39;, props&lt;{ user: User }&gt;());<br>updateUserSuccess = createAction(&#39;[User] Update Success&#39;, props&lt;{ user: User }&gt;());<br>updateUserFailure = createAction(&#39;[User] Update Failure&#39;, props&lt;{ previousUser: User }&gt;());</pre><pre>// Effect<br>updateUser$ = createEffect(() =&gt;<br>  this.actions$.pipe(<br>    ofType(updateUser),<br>    optimisticUpdate({<br>      run: ({ user }) =&gt;<br>        this.userApi.update(user).pipe(<br>          map(updated =&gt; updateUserSuccess({ user: updated }))<br>        ),<br>      undoAction: ({ user }, error) =&gt;<br>        updateUserFailure({ previousUser: user })<br>    })<br>  )<br>);</pre><p>The @ngrx/router-store optimisticUpdate operator handles rollback automatically.</p><h3>3. Performance &amp; Optimization</h3><h3>Q7: How do you diagnose and fix a slow Angular application?</h3><p><strong>Answer:</strong></p><p><strong>Diagnosis tools:</strong></p><ul><li>Angular DevTools (component tree profiler, change detection cycles)</li><li>Chrome DevTools Performance tab</li><li>ng build --stats-json + webpack-bundle-analyzer</li><li>Lighthouse for Core Web Vitals</li></ul><p><strong>Common bottlenecks and fixes:</strong></p><p>ProblemFixToo many CD cyclesChangeDetectionStrategy.OnPush on all componentsHeavy bundlesLazy-load feature modules, defer importsLarge third-party libsReplace or use dynamic importSlow initial paintSSR/pre-rendering (Angular Universal / @angular/ssr)N+1 HTTP callsCombine requests, use forkJoin, cache with shareReplayLarge listsVirtual scrolling (@angular/cdk/scrolling)Expensive pipesMark pipes as pure: true (default) or memoize</p><h3>Q8: Explain ChangeDetectionStrategy.OnPush and when to use it.</h3><p><strong>Answer:</strong></p><p>OnPush tells Angular to only check a component when:</p><ol><li>An @Input() reference changes (not deep mutation).</li><li>An event originates from the component or its children.</li><li>An Observable subscribed via async pipe emits.</li><li>ChangeDetectorRef.markForCheck() is called explicitly.</li><li>A signal dependency changes (Angular 17+).</li></ol><p><strong>Best practice:</strong> Enable OnPush on <strong>all</strong> components by default. This shifts responsibility to:</p><ul><li>Immutable data patterns (spread operators, immer)</li><li>Using async pipe instead of manual subscriptions</li><li>Signals for reactive state</li></ul><pre>@Component({<br>  changeDetection: ChangeDetectionStrategy.OnPush,<br>  // ...<br>})<br>export class ProductCardComponent {<br>  @Input() product!: Product; // Must receive new reference to trigger CD<br>}</pre><p><strong>Pitfall:</strong> Mutating an object in-place (this.user.name = &#39;Bob&#39;) will NOT trigger OnPush. Always replace the reference.</p><h3>Q9: How would you implement lazy loading and code splitting in Angular?</h3><p><strong>Answer:</strong></p><p><strong>Route-based lazy loading (most common):</strong></p><pre>// app.routes.ts<br>export const routes: Routes = [<br>  {<br>    path: &#39;admin&#39;,<br>    loadChildren: () =&gt;<br>      import(&#39;./features/admin/admin.routes&#39;).then(m =&gt; m.ADMIN_ROUTES)<br>  },<br>  {<br>    path: &#39;reports&#39;,<br>    loadComponent: () =&gt;<br>      import(&#39;./features/reports/reports.component&#39;).then(m =&gt; m.ReportsComponent)<br>  }<br>];</pre><p><strong>Preloading strategies:</strong></p><ul><li>NoPreloading (default) — only load on navigate</li><li>PreloadAllModules — load all lazy modules after initial render</li><li>QuicklinkStrategy (ngx-quicklink) — preload routes visible in the viewport</li><li>Custom strategy — preload based on user role or analytics data</li></ul><p><strong>Component-level deferral (Angular 17 @defer):</strong></p><pre>@defer (on viewport) {<br>  &lt;app-heavy-chart [data]=&quot;chartData&quot; /&gt;<br>} @placeholder {<br>  &lt;div class=&quot;chart-skeleton&quot;&gt;&lt;/div&gt;<br>} @loading {<br>  &lt;mat-spinner /&gt;<br>}</pre><p>@defer automatically creates a separate chunk; the trigger controls when it downloads.</p><h3>Q10: How do you optimise Angular’s bundle size?</h3><p><strong>Answer:</strong></p><ol><li><strong>Tree-shaking</strong> — Angular CLI uses esbuild (v17+); ensure all imports are ES modules.</li><li><strong>Avoid </strong><strong>CommonModule barrel</strong> — import only what you need (e.g., NgIf, NgFor standalone).</li><li><strong>Dynamic imports</strong> — for heavy libraries used rarely.</li><li><strong>Source map explorer</strong> — identify bloated dependencies.</li><li><strong>Replace heavy libraries</strong> — e.g., use date-fns (tree-shakable) over moment.js.</li><li><strong>Build optimisations</strong> — ng build --configuration production enables:</li></ol><ul><li>AOT compilation</li><li>Minification</li><li>Dead-code elimination</li><li>CSS optimisation</li></ul><p><strong>Budget enforcement in </strong><strong>angular.json:</strong></p><pre>&quot;budgets&quot;: [<br>  { &quot;type&quot;: &quot;initial&quot;, &quot;maximumWarning&quot;: &quot;500kb&quot;, &quot;maximumError&quot;: &quot;1mb&quot; },<br>  { &quot;type&quot;: &quot;anyComponentStyle&quot;, &quot;maximumWarning&quot;: &quot;4kb&quot; }<br>]</pre><h3>Q11: How would you handle rendering a list of 100,000 items?</h3><p><strong>Answer:</strong></p><p>Never render 100,000 DOM nodes. Use <strong>virtual scrolling</strong>:</p><pre>import { ScrollingModule } from &#39;@angular/cdk/scrolling&#39;;</pre><pre>// Template<br>&lt;cdk-virtual-scroll-viewport itemSize=&quot;60&quot; style=&quot;height: 600px;&quot;&gt;<br>  &lt;div *cdkVirtualFor=&quot;let item of items; trackBy: trackById&quot;&gt;<br>    {{ item.name }}<br>  &lt;/div&gt;<br>&lt;/cdk-virtual-scroll-viewport&gt;</pre><p><strong>Additional strategies:</strong></p><ul><li><strong>Pagination</strong> — server-side or client-side chunks</li><li><strong>Infinite scroll</strong> — fetch next page on scroll threshold (IntersectionObserver)</li><li><strong>trackBy</strong> — always use to prevent unnecessary DOM re-creation</li><li><strong>Skeleton screens</strong> — perceived performance while loading</li></ul><h3>4. Scalability &amp; Modularity</h3><h3>Q12: How do you enforce module boundaries in a large Angular workspace?</h3><p><strong>Answer:</strong></p><p>Use <strong>Nx</strong> monorepo tooling with library-level boundary rules:</p><pre>apps/<br>  web-app/<br>libs/<br>  feature-orders/        # Smart components, state<br>  ui-kit/                # Dumb/presentational components<br>  data-access-orders/    # HTTP services, NgRx store<br>  util-formatters/       # Pure functions, pipes</pre><p><strong>Nx boundary rules in </strong><strong>.eslintrc.json:</strong></p><pre>&quot;@nx/enforce-module-boundaries&quot;: [&quot;error&quot;, {<br>  &quot;depConstraints&quot;: [<br>    { &quot;sourceTag&quot;: &quot;type:feature&quot;, &quot;onlyDependOnLibsWithTags&quot;: [&quot;type:ui&quot;, &quot;type:data-access&quot;, &quot;type:util&quot;] },<br>    { &quot;sourceTag&quot;: &quot;type:ui&quot;, &quot;onlyDependOnLibsWithTags&quot;: [&quot;type:ui&quot;, &quot;type:util&quot;] },<br>    { &quot;sourceTag&quot;: &quot;type:data-access&quot;, &quot;onlyDependOnLibsWithTags&quot;: [&quot;type:util&quot;] }<br>  ]<br>}]</pre><p>This prevents circular dependencies and enforces architectural layers at lint-time.</p><h3>Q13: How do you share code between multiple Angular apps in a monorepo?</h3><p><strong>Answer:</strong></p><p>In an <strong>Nx workspace:</strong></p><ol><li>Create shared libs: nx g @nx/angular:library shared/ui-kit</li><li>Import via TypeScript path aliases: import { ButtonComponent } from &#39;@myorg/ui-kit&#39;</li><li>Affected build graph: nx affected:build only rebuilds changed libs and their dependents</li></ol><p><strong>Without Nx (npm workspaces):</strong></p><ul><li>Shared code in a packages/ directory</li><li>Each package has its own package.json</li><li>Apps install packages via workspace protocol (&quot;@myorg/ui&quot;: &quot;workspace:*&quot;)</li></ul><p><strong>Versioning strategy for shared libs:</strong></p><ul><li>Internal (same repo): no versioning needed; always at HEAD</li><li>Published (separate repo): use semantic versioning + Changesets or Lerna</li></ul><h3>5. Routing &amp; Navigation</h3><h3>Q14: How would you design the routing system for a multi-role application?</h3><p><strong>Answer:</strong></p><p><strong>Structure:</strong></p><pre>export const routes: Routes = [<br>  { path: &#39;&#39;, redirectTo: &#39;/dashboard&#39;, pathMatch: &#39;full&#39; },<br>  {<br>    path: &#39;admin&#39;,<br>    canActivate: [AuthGuard, RoleGuard],<br>    data: { roles: [&#39;ADMIN&#39;] },<br>    loadChildren: () =&gt; import(&#39;./admin/admin.routes&#39;)<br>  },<br>  {<br>    path: &#39;user&#39;,<br>    canActivate: [AuthGuard],<br>    loadChildren: () =&gt; import(&#39;./user/user.routes&#39;)<br>  },<br>  { path: &#39;login&#39;, loadComponent: () =&gt; import(&#39;./auth/login.component&#39;) },<br>  { path: &#39;**&#39;, component: NotFoundComponent }<br>];</pre><p><strong>Role guard implementation:</strong></p><pre>@Injectable({ providedIn: &#39;root&#39; })<br>export class RoleGuard implements CanActivate {<br>  constructor(private auth: AuthService, private router: Router) {}</pre><pre>  canActivate(route: ActivatedRouteSnapshot): boolean | UrlTree {<br>    const required: string[] = route.data[&#39;roles&#39;];<br>    if (this.auth.hasAnyRole(required)) return true;<br>    return this.router.createUrlTree([&#39;/forbidden&#39;]);<br>  }<br>}</pre><p><strong>Additional guards to consider:</strong></p><ul><li>canDeactivate — unsaved form changes warning</li><li>canMatch — render different modules for different roles at the same path</li><li>resolve — pre-fetch data before activating route (use sparingly; prefer loading states)</li></ul><h3>Q15: How do you handle deep linking and browser history in SPAs?</h3><p><strong>Answer:</strong></p><p>Angular’s RouterModule provides three LocationStrategy options:</p><p>StrategyURL formatServer config neededPathLocationStrategy (default)/orders/123Yes — rewrite all paths to index.htmlHashLocationStrategy/#/orders/123No — hash never reaches serverCustomCustom logicDepends</p><p><strong>Server config (nginx example for PathLocationStrategy):</strong></p><pre>location / {<br>  try_files $uri $uri/ /index.html;<br>}</pre><p><strong>Scroll restoration:</strong></p><pre>RouterModule.forRoot(routes, {<br>  scrollPositionRestoration: &#39;enabled&#39;,<br>  anchorScrolling: &#39;enabled&#39;<br>})</pre><h3>6. API Communication &amp; Data Layer</h3><h3>Q16: How do you design a resilient HTTP layer in Angular?</h3><p><strong>Answer:</strong></p><p>Use HttpClient with a layered interceptor chain:</p><pre>Component → Service → HttpClient → [Auth Interceptor → Retry Interceptor → Logging Interceptor] → HTTP</pre><p><strong>Auth interceptor:</strong></p><pre>export const authInterceptor: HttpInterceptorFn = (req, next) =&gt; {<br>  const token = inject(AuthService).getToken();<br>  const authed = token<br>    ? req.clone({ setHeaders: { Authorization: `Bearer ${token}` } })<br>    : req;<br>  return next(authed);<br>};</pre><p><strong>Retry with exponential backoff:</strong></p><pre>export const retryInterceptor: HttpInterceptorFn = (req, next) =&gt;<br>  next(req).pipe(<br>    retry({<br>      count: 3,<br>      delay: (error, attempt) =&gt; {<br>        if (error.status === 401 || error.status === 403) throw error;<br>        return timer(Math.pow(2, attempt) * 1000);<br>      }<br>    })<br>  );</pre><p><strong>Token refresh (401 handling):</strong></p><pre>catchError(err =&gt; {<br>  if (err.status === 401) {<br>    return this.auth.refresh().pipe(<br>      switchMap(token =&gt; next(req.clone({ setHeaders: { Authorization: `Bearer ${token}` } })))<br>    );<br>  }<br>  return throwError(() =&gt; err);<br>})</pre><h3>Q17: How do you handle caching of HTTP responses in Angular?</h3><p><strong>Answer:</strong></p><p><strong>In-memory cache with </strong><strong>shareReplay:</strong></p><pre>@Injectable({ providedIn: &#39;root&#39; })<br>export class ProductService {<br>  private cache$ = this.http.get&lt;Product[]&gt;(&#39;/api/products&#39;).pipe(<br>    shareReplay({ bufferSize: 1, refCount: false })<br>  );</pre><pre>  getProducts(): Observable&lt;Product[]&gt; {<br>    return this.cache$;<br>  }<br>}</pre><p><strong>TTL-based cache:</strong></p><pre>private cache = new Map&lt;string, { data: any; expiry: number }&gt;();</pre><pre>get&lt;T&gt;(url: string, ttlMs = 60_000): Observable&lt;T&gt; {<br>  const cached = this.cache.get(url);<br>  if (cached &amp;&amp; Date.now() &lt; cached.expiry) {<br>    return of(cached.data);<br>  }<br>  return this.http.get&lt;T&gt;(url).pipe(<br>    tap(data =&gt; this.cache.set(url, { data, expiry: Date.now() + ttlMs }))<br>  );<br>}</pre><p><strong>Service Worker caching (production):</strong></p><p>Use Angular’s PWA support (@angular/pwa) with a ngsw-config.json to cache API responses at the network layer — no code changes needed in services.</p><h3>Q18: How would you design an API service layer for a complex Angular app?</h3><p><strong>Answer:</strong></p><pre>// Base resource service<br>abstract class ResourceService&lt;T&gt; {<br>  protected abstract resourceUrl: string;<br>  constructor(protected http: HttpClient) {}</pre><pre>  getAll(params?: HttpParams): Observable&lt;T[]&gt; {<br>    return this.http.get&lt;T[]&gt;(this.resourceUrl, { params });<br>  }<br>  getById(id: number | string): Observable&lt;T&gt; {<br>    return this.http.get&lt;T&gt;(`${this.resourceUrl}/${id}`);<br>  }<br>  create(payload: Partial&lt;T&gt;): Observable&lt;T&gt; {<br>    return this.http.post&lt;T&gt;(this.resourceUrl, payload);<br>  }<br>  update(id: number | string, payload: Partial&lt;T&gt;): Observable&lt;T&gt; {<br>    return this.http.put&lt;T&gt;(`${this.resourceUrl}/${id}`, payload);<br>  }<br>  delete(id: number | string): Observable&lt;void&gt; {<br>    return this.http.delete&lt;void&gt;(`${this.resourceUrl}/${id}`);<br>  }<br>}</pre><pre>// Concrete implementation<br>@Injectable({ providedIn: &#39;root&#39; })<br>export class OrderService extends ResourceService&lt;Order&gt; {<br>  protected resourceUrl = &#39;/api/orders&#39;;</pre><pre>  // Domain-specific methods<br>  getByCustomer(customerId: string): Observable&lt;Order[]&gt; {<br>    return this.http.get&lt;Order[]&gt;(`${this.resourceUrl}?customerId=${customerId}`);<br>  }<br>}</pre><h3>7. Authentication &amp; Security</h3><h3>Q19: How do you implement authentication and authorisation in Angular?</h3><p><strong>Answer:</strong></p><p><strong>Token-based auth flow:</strong></p><ol><li>User submits credentials → server returns accessToken + refreshToken</li><li>Store accessToken in <strong>memory</strong> (JS variable / signal); store refreshToken in <strong>HttpOnly cookie</strong> (server-managed) to prevent XSS</li><li>Attach accessToken via HTTP interceptor on every request</li><li>On 401, call refresh endpoint (cookie sent automatically); swap new access token</li><li>On refresh failure: logout, redirect to login</li></ol><p><strong>Never store JWTs in </strong><strong>localStorage</strong> — XSS attacks can steal them.</p><p><strong>Route protection:</strong></p><pre>export const authGuard: CanActivateFn = (route, state) =&gt; {<br>  const auth = inject(AuthService);<br>  const router = inject(Router);<br>  return auth.isAuthenticated()<br>    ? true<br>    : router.createUrlTree([&#39;/login&#39;], { queryParams: { returnUrl: state.url } });<br>};</pre><p><strong>XSS prevention:</strong></p><ul><li>Angular’s template engine auto-sanitises bound values by default</li><li>Never use [innerHTML] with untrusted input; use DomSanitizer.bypassSecurityTrustHtml() sparingly</li><li>Set Content-Security-Policy headers server-side</li></ul><p><strong>CSRF protection:</strong></p><ul><li>Angular’s HttpClient reads the XSRF-TOKEN cookie and sends it as X-XSRF-TOKEN header automatically (when using same-origin cookies)</li></ul><h3>Q20: How do you secure Angular environment variables and sensitive config?</h3><p><strong>Answer:</strong></p><ul><li>Never embed secrets (API keys, private keys) in Angular source — the browser bundle is public.</li><li>Use environment.ts only for <strong>non-sensitive</strong> config (API base URL, feature flags, analytics IDs).</li><li>Retrieve sensitive values server-side; expose them to the frontend only via authenticated API endpoints.</li><li>Use APP_INITIALIZER to fetch remote config before the app starts:</li></ul><pre>export function initConfig(configService: ConfigService) {<br>  return () =&gt; configService.load(); // Fetches /api/config<br>}</pre><pre>providers: [<br>  { provide: APP_INITIALIZER, useFactory: initConfig, deps: [ConfigService], multi: true }<br>]</pre><h3>8. Testing Strategy</h3><h3>Q21: What is your testing strategy for a large Angular application?</h3><p><strong>Answer:</strong></p><p>Follow the <strong>Testing Trophy</strong> (Kent C. Dodds) adapted for Angular:</p><p>LevelToolFocusRatioStaticESLint + TypeScriptType errors, lintAll codeUnitJest + Angular Testing LibraryPure functions, services, pipes~40%IntegrationJest + TestBedComponent + template + service~40%E2ECypress / PlaywrightCritical user journeys~20%</p><p><strong>Key practices:</strong></p><ul><li>Test <strong>behaviour</strong>, not implementation (avoid testing internals like ngOnInit directly).</li><li>Use TestBed with NO_ERRORS_SCHEMA sparingly; prefer shallow rendering with ng-mocks.</li><li>Mock HTTP via HttpClientTestingModule + HttpTestingController.</li><li>Use fakeAsync + tick() for async code in unit tests.</li><li>Integrate E2E in CI but limit suite to critical paths to keep pipelines fast.</li></ul><h3>Q22: How do you test NgRx store logic?</h3><p><strong>Answer:</strong></p><p><strong>Reducers</strong> (pure functions — easiest to test):</p><pre>it(&#39;should add item to cart&#39;, () =&gt; {<br>  const state = cartReducer(initialState, addItem({ item: mockItem }));<br>  expect(state.items).toContain(mockItem);<br>});</pre><p><strong>Effects:</strong></p><pre>it(&#39;should load products on action&#39;, () =&gt; {<br>  actions$ = hot(&#39;-a&#39;, { a: loadProducts() });<br>  const response = cold(&#39;-b|&#39;, { b: [mockProduct] });<br>  productService.getAll.mockReturnValue(response);</pre><pre>  const expected = hot(&#39;--c&#39;, { c: loadProductsSuccess({ products: [mockProduct] }) });<br>  expect(effects.loadProducts$).toBeObservable(expected);<br>});</pre><p><strong>Integration test with MockStore:</strong></p><pre>TestBed.configureTestingModule({<br>  providers: [<br>    provideMockStore({ initialState: { cart: { items: [] } } })<br>  ]<br>});<br>store = TestBed.inject(MockStore);<br>store.overrideSelector(selectCartItems, [mockItem]);</pre><h3>9. Build, Deployment &amp; CI/CD</h3><h3>Q23: How do you structure a CI/CD pipeline for an Angular application?</h3><p><strong>Answer:</strong></p><p><strong>Pipeline stages:</strong></p><pre>Commit → Lint → Unit Tests → Build → Integration Tests → E2E (staging) → Deploy</pre><p><strong>GitHub Actions example:</strong></p><pre>jobs:<br>  ci:<br>    runs-on: ubuntu-latest<br>    steps:<br>      - uses: actions/checkout@v4<br>      - uses: actions/setup-node@v4<br>        with: { node-version: &#39;20&#39;, cache: &#39;npm&#39; }<br>      - run: npm ci<br>      - run: npx ng lint<br>      - run: npx ng test --watch=false --browsers=ChromeHeadless --code-coverage<br>      - run: npx ng build --configuration=production<br>      - uses: actions/upload-artifact@v4<br>        with: { name: dist, path: dist/ }</pre><pre>  e2e:<br>    needs: ci<br>    runs-on: ubuntu-latest<br>    steps:<br>      - run: npx cypress run --env baseUrl=${{ secrets.STAGING_URL }}</pre><p><strong>Deployment strategies:</strong></p><ul><li><strong>Blue-Green</strong>: two identical environments; switch router after validation</li><li><strong>Canary</strong>: route 5% of traffic to new version; ramp up gradually</li><li><strong>Feature flags</strong>: deploy code dark; enable via config (LaunchDarkly, Unleash)</li></ul><h3>Q24: How do you manage environment-specific configuration at build time vs runtime?</h3><p><strong>Answer:</strong></p><p><strong>Build-time (Angular environments):</strong></p><pre>// environment.prod.ts<br>export const environment = {<br>  production: true,<br>  apiBaseUrl: &#39;https://api.example.com&#39;<br>};</pre><p>Replace during ng build --configuration=production.</p><p><strong>Runtime config (preferred for multi-environment containers):</strong></p><pre>// Fetched via APP_INITIALIZER before app boots<br>// /assets/config.json served by CDN/server with env-specific values<br>{<br>  &quot;apiBaseUrl&quot;: &quot;https://api-staging.example.com&quot;,<br>  &quot;featureFlags&quot;: { &quot;newDashboard&quot;: true }<br>}</pre><p>This allows a <strong>single Docker image</strong> to be promoted across dev → staging → prod by swapping config, not rebuilding.</p><h3>10. Micro-Frontends</h3><h3>Q25: How do you implement micro-frontends in Angular using Module Federation?</h3><p><strong>Answer:</strong></p><p><strong>Shell (host) app webpack config:</strong></p><pre>// webpack.config.js (shell)<br>new ModuleFederationPlugin({<br>  remotes: {<br>    ordersApp: &#39;ordersApp@https://orders.example.com/remoteEntry.js&#39;,<br>    usersApp: &#39;usersApp@https://users.example.com/remoteEntry.js&#39;<br>  },<br>  shared: { &#39;@angular/core&#39;: { singleton: true }, &#39;@angular/router&#39;: { singleton: true } }<br>})</pre><p><strong>Remote (Orders) app:</strong></p><pre>new ModuleFederationPlugin({<br>  name: &#39;ordersApp&#39;,<br>  filename: &#39;remoteEntry.js&#39;,<br>  exposes: {<br>    &#39;./Module&#39;: &#39;./src/app/orders/orders.module.ts&#39;<br>  }<br>})</pre><p><strong>Shell routing:</strong></p><pre>{<br>  path: &#39;orders&#39;,<br>  loadChildren: () =&gt; loadRemoteModule({<br>    type: &#39;module&#39;,<br>    remoteEntry: &#39;https://orders.example.com/remoteEntry.js&#39;,<br>    exposedModule: &#39;./Module&#39;<br>  }).then(m =&gt; m.OrdersModule)<br>}</pre><p><strong>Challenges to address:</strong></p><ul><li><strong>Shared state</strong> — use custom events (CustomEvent) or a shared RxJS EventBus lib</li><li><strong>Shared UI</strong> — publish a versioned design-system package to npm</li><li><strong>Angular version mismatch</strong> — pin singleton: true for Angular core packages</li><li><strong>Authentication</strong> — share session cookie; each MFE validates on its own</li></ul><h3>11. Accessibility &amp; Internationalisation</h3><h3>Q26: How do you ensure accessibility (a11y) in an Angular application?</h3><p><strong>Answer:</strong></p><p><strong>Technical checklist:</strong></p><ul><li>Use semantic HTML (&lt;button&gt;, &lt;nav&gt;, &lt;main&gt;, &lt;h1–h6&gt;) over &lt;div&gt; + click handlers</li><li>Manage focus explicitly on route changes and modal open/close:</li></ul><pre>// After modal opens<br>this.modalTitleRef.nativeElement.focus();<br>// On modal close<br>this.triggerButtonRef.nativeElement.focus();</pre><ul><li>Use Angular CDK FocusTrap inside modals/dialogs</li><li>ARIA attributes for dynamic content:</li></ul><pre>&lt;div role=&quot;alert&quot; aria-live=&quot;polite&quot;&gt;{{ statusMessage }}&lt;/div&gt;</pre><ul><li>Keyboard navigation: ensure all interactive elements are reachable via Tab and operable via Enter/Space</li><li>Colour contrast: minimum 4.5:1 for normal text (WCAG AA)</li><li>Automated testing: axe-core with Cypress (cypress-axe) in CI</li></ul><h3>Q27: How do you implement internationalisation (i18n) in Angular?</h3><p><strong>Answer:</strong></p><p><strong>Option 1: Angular built-in i18n (compile-time)</strong></p><pre>&lt;h1 i18n=&quot;Site header|Main title@@siteHeader&quot;&gt;Hello&lt;/h1&gt;</pre><pre>ng extract-i18n --output-path src/locale<br># Generates messages.xlf → translate → build per locale<br>ng build --localize</pre><p>Produces separate bundles per locale. Fast runtime, no JS overhead, but requires build per locale.</p><p><strong>Option 2: </strong><strong>ngx-translate (runtime)</strong></p><pre>translate.use(&#39;fr&#39;); // Switch locale without rebuild<br>translate.get(&#39;HELLO&#39;).subscribe(val =&gt; this.title = val);<br>// Template: {{ &#39;WELCOME&#39; | translate }}</pre><p>Runtime switching without rebuild — ideal for apps that allow in-session locale change.</p><p><strong>Choose built-in i18n</strong> when SEO matters (different URLs per locale) and when performance is critical. <strong>Choose </strong><strong>ngx-translate</strong> when users switch languages on the fly.</p><h3>12. Observability &amp; Error Handling</h3><h3>Q28: How do you implement global error handling in Angular?</h3><p><strong>Answer:</strong></p><p><strong>Global error handler:</strong></p><pre>@Injectable()<br>export class GlobalErrorHandler implements ErrorHandler {<br>  constructor(private logger: LoggingService) {}</pre><pre>  handleError(error: unknown): void {<br>    const msg = error instanceof Error ? error.message : String(error);<br>    this.logger.error(msg, error);<br>    // Show user-friendly toast notification<br>  }<br>}</pre><pre>// Register<br>providers: [{ provide: ErrorHandler, useClass: GlobalErrorHandler }]</pre><p><strong>HTTP error handling (interceptor):</strong></p><pre>export const errorInterceptor: HttpInterceptorFn = (req, next) =&gt;<br>  next(req).pipe(<br>    catchError((error: HttpErrorResponse) =&gt; {<br>      if (error.status === 0) {<br>        // Network error<br>        notificationService.error(&#39;No internet connection&#39;);<br>      } else if (error.status &gt;= 500) {<br>        // Server error<br>        loggingService.error(&#39;Server error&#39;, error);<br>        notificationService.error(&#39;Something went wrong. Please try again.&#39;);<br>      }<br>      return throwError(() =&gt; error);<br>    })<br>  );</pre><p><strong>Monitoring integration:</strong></p><ul><li>Sentry (@sentry/angular) — wraps ErrorHandler and captures exceptions with stack traces</li><li>Datadog RUM — session replay + real user monitoring</li></ul><h3>Q29: How do you implement logging and monitoring for a production Angular app?</h3><p><strong>Answer:</strong></p><p><strong>Logging service abstraction:</strong></p><pre>export abstract class LoggingService {<br>  abstract info(msg: string, context?: object): void;<br>  abstract warn(msg: string, context?: object): void;<br>  abstract error(msg: string, error?: unknown): void;<br>}</pre><pre>// Sentry implementation<br>@Injectable()<br>export class SentryLoggingService extends LoggingService {<br>  error(msg: string, error?: unknown) {<br>    Sentry.captureException(error ?? new Error(msg));<br>  }<br>}</pre><p><strong>Key metrics to track:</strong></p><ul><li>Core Web Vitals (LCP, FID/INP, CLS) — via web-vitals library</li><li>JS error rate — Sentry</li><li>HTTP error rate &amp; latency — custom interceptor + analytics</li><li>Route change performance — Angular router events + Performance.mark()</li></ul><h3>13. Design System &amp; Component Library</h3><h3>Q30: How would you design a component library for use across multiple Angular apps?</h3><p><strong>Answer:</strong></p><p><strong>Library structure:</strong></p><pre>libs/<br>  ui-kit/<br>    src/<br>      lib/<br>        button/<br>          button.component.ts<br>          button.component.spec.ts<br>          index.ts<br>        input/<br>        modal/<br>      index.ts           # Public API barrel<br>    package.json<br>    ng-package.json      # For ng-packagr</pre><p><strong>Design principles:</strong></p><ul><li><strong>Dumb components</strong> — no business logic, no direct API calls</li><li><strong>@Input() / </strong><strong>@Output() contract</strong> — all configuration via props and events</li><li><strong>CSS custom properties</strong> — theming without style encapsulation leaks</li></ul><pre>/* Component styles */<br>:host {<br>  --btn-bg: var(--color-primary, #1976d2);<br>  background: var(--btn-bg);<br>}<br>/* Consumer overrides */<br>app-button { --btn-bg: #e91e63; }</pre><ul><li><strong>Storybook</strong> — document components visually, test in isolation</li><li><strong>Versioned releases</strong> — follow semver; breaking changes increment major version</li></ul><h3>14. Real-Time Features</h3><h3>Q31: How would you implement real-time features (e.g. live notifications) in Angular?</h3><p><strong>Answer:</strong></p><p><strong>WebSocket service:</strong></p><pre>@Injectable({ providedIn: &#39;root&#39; })<br>export class WebSocketService {<br>  private socket$ = webSocket&lt;ServerEvent&gt;(&#39;wss://api.example.com/ws&#39;);</pre><pre>  getMessages&lt;T&gt;(type: string): Observable&lt;T&gt; {<br>    return this.socket$.pipe(<br>      filter(event =&gt; event.type === type),<br>      map(event =&gt; event.payload as T)<br>    );<br>  }</pre><pre>  send(message: ClientMessage): void {<br>    this.socket$.next(message);<br>  }<br>}</pre><p><strong>Reconnect with exponential backoff:</strong></p><pre>this.socket$ = webSocket(&#39;wss://...&#39;).pipe(<br>  retryWhen(errors =&gt;<br>    errors.pipe(delayWhen((_, i) =&gt; timer(Math.min(10000, Math.pow(2, i) * 1000))))<br>  )<br>);</pre><p><strong>Alternatives:</strong></p><ul><li><strong>Server-Sent Events (SSE)</strong> — one-way server → client; simpler, works over HTTP/2</li><li><strong>Long polling</strong> — fallback for environments where WebSockets are blocked</li><li><strong>Pusher / Ably</strong> — managed real-time services (reduce operational burden)</li></ul><h3>Q32: How do you handle WebSocket data in NgRx?</h3><p><strong>Answer:</strong></p><pre>// Effect listens to WS and dispatches actions<br>websocketMessages$ = createEffect(() =&gt;<br>  this.wsService.getMessages&lt;Notification&gt;(&#39;notification&#39;).pipe(<br>    map(notification =&gt; addNotification({ notification }))<br>  )<br>);</pre><pre>// Another effect sends commands<br>sendMessage$ = createEffect(() =&gt;<br>  this.actions$.pipe(<br>    ofType(subscribeToRoom),<br>    tap(({ roomId }) =&gt; this.wsService.send({ type: &#39;subscribe&#39;, roomId }))<br>  ), { dispatch: false }<br>);</pre><p>This keeps WebSocket handling in effects — components remain agnostic of the transport layer.</p><h3>15. Caching &amp; Offline Support</h3><h3>Q33: How do you make an Angular app work offline (PWA)?</h3><p><strong>Answer:</strong></p><p><strong>Setup:</strong></p><pre>ng add @angular/pwa</pre><p>This adds:</p><ul><li>manifest.webmanifest — app metadata for install</li><li>ngsw-worker.js — Angular&#39;s Service Worker</li><li>ngsw-config.json — caching strategies</li></ul><p><strong>ngsw-config.json example:</strong></p><pre>{<br>  &quot;assetGroups&quot;: [<br>    {<br>      &quot;name&quot;: &quot;app-shell&quot;,<br>      &quot;installMode&quot;: &quot;prefetch&quot;,<br>      &quot;resources&quot;: { &quot;files&quot;: [&quot;/favicon.ico&quot;, &quot;/index.html&quot;, &quot;/*.css&quot;, &quot;/*.js&quot;] }<br>    }<br>  ],<br>  &quot;dataGroups&quot;: [<br>    {<br>      &quot;name&quot;: &quot;api-products&quot;,<br>      &quot;urls&quot;: [&quot;/api/products&quot;],<br>      &quot;cacheConfig&quot;: {<br>        &quot;strategy&quot;: &quot;freshness&quot;,<br>        &quot;maxSize&quot;: 100,<br>        &quot;maxAge&quot;: &quot;1h&quot;,<br>        &quot;timeout&quot;: &quot;10s&quot;<br>      }<br>    }<br>  ]<br>}</pre><p><strong>Caching strategies:</strong></p><ul><li>performance (cache-first) — serve from cache; update in background</li><li>freshness (network-first) — try network first; fall back to cache if offline</li></ul><p><strong>Sync queued actions when back online:</strong></p><p>Use Background Sync API or check navigator.onLine + queue in IndexedDB (via idb library).</p><h3>Q34: How would you implement client-side data persistence in Angular?</h3><p><strong>Answer:</strong></p><p>StorageCapacityUse caselocalStorage5–10 MBUser preferences, non-sensitive settingssessionStorage5–10 MBPer-tab temporary dataIndexedDB50 MB+Structured data, offline queues, binary blobsCache APIBrowser quotaHTTP response caching (used by Service Workers)Cookies4 KBAuth tokens (HttpOnly), CSRF tokens</p><p><strong>Recommended Angular wrapper:</strong></p><pre>@Injectable({ providedIn: &#39;root&#39; })<br>export class StorageService {<br>  private db$ = from(openDB(&#39;myapp&#39;, 1, {<br>    upgrade(db) { db.createObjectStore(&#39;drafts&#39;, { keyPath: &#39;id&#39; }); }<br>  }));</pre><pre>  saveDraft(draft: Draft): Observable&lt;void&gt; {<br>    return this.db$.pipe(switchMap(db =&gt; from(db.put(&#39;drafts&#39;, draft))));<br>  }<br>}</pre><h3>Summary: Interview Cheat Sheet</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EfOaVy7NuSiZJgdx17NeHQ.png" /></figure><p><em>This article is intended for mid-to-senior frontend engineers preparing for system design rounds. All code examples use Angular 17+ with TypeScript 5+.</em></p><p><em>If you found this useful, follow me on Medium — it genuinely motivates me to keep writing and sharing more real-world Angular content.</em></p><p><strong><em>Happy coding.<br>More coming your way.</em></strong><em>👩‍💻💡</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55af77085445" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stacked PRs Are Finally Native to GitHub ]]></title>
            <link>https://medium.com/@manpreetkaur6311062/stacked-prs-are-finally-native-to-github-8d9b7ea0dda6?source=rss-eaff65c3e053------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d9b7ea0dda6</guid>
            <category><![CDATA[pr]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[code-merge]]></category>
            <category><![CDATA[stacked-pr]]></category>
            <category><![CDATA[pull-request]]></category>
            <dc:creator><![CDATA[ManpreetKaur]]></dc:creator>
            <pubDate>Mon, 10 Aug 2026 22:31:27 GMT</pubDate>
            <atom:updated>2026-08-10T22:31:27.827Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EsaHgh3rnL1PJ0T7qjYCaQ.png" /><figcaption>Stacked PRs Github</figcaption></figure><p>If you’ve ever worked on a large feature that had to be split across multiple pull requests, you probably know the problem:</p><p>You finish PR #1.</p><p>Then PR #2 depends on PR #1.</p><p>PR #3 depends on PR #2.</p><p>And suddenly your “simple feature” has turned into a web of branches, rebases, changing base branches, and reviewers trying to understand which changes actually belong to which PR.</p><p><strong>GitHub just made this workflow a lot easier.</strong></p><p>On <strong>July 30, 2026, GitHub announced Stacked Pull Requests in public preview</strong>, bringing native support for a workflow that many engineering teams have been managing through third-party tools, Git commands, or custom automation.</p><h3><strong>Official link :</strong></h3><p><a href="https://docs.github.com/en/pull-requests/how-tos/create-pull-requests/creating-stacked-pull-requests?utm_source=sp_auto_dm&amp;fbclid=PAVERFWATnKX5wZG9mAmZkaWQWUMNzQ-9WNPh8W4VLsJfKYUNGcGeuemV4dG4DYWVtAjEwAHNydGMGYXBwX2lkDzEyNDAyNDU3NDI4NzQxNAABp-l-U_YEmO37eAfFog-xhlohkjpdvyd810UuO2060p11dhEORBVR-Jbq2mDa_aem_FuFCWKyXnt6CEbJESZpQcg"><strong><em>https://docs.github.com</em></strong></a></p><p>So, what exactly are Stacked PRs?</p><p>Instead of putting an entire feature into one huge pull request, you break it into smaller, dependent changes.</p><p>For example:</p><pre>main<br>  │<br>  └── PR #1 — Database changes<br>          │<br>          └── PR #2 — Backend/API changes<br>                  │<br>                  └── PR #3 — Frontend changes<br>                          │<br>                          └── PR #4 — Tests &amp; cleanup</pre><p>Each PR builds on the previous one.</p><p>That means reviewers can focus on <strong>one logical change at a time</strong> instead of reviewing a massive PR containing hundreds or thousands of lines of unrelated changes.</p><p>And once the lower PR is merged, the next layer can move forward.</p><h3>Why does this matter?</h3><p>Because code review is often the bottleneck—not writing the code.</p><p>A large PR can be difficult to review because the reviewer has to understand:</p><ul><li>What is the actual change?</li><li>Which parts are foundational?</li><li>Which changes are dependent?</li><li>Which code is refactoring?</li><li>Which code actually implements the feature?</li><li>What can safely be merged now?</li></ul><p>Stacking lets you turn one large change into a sequence of smaller engineering decisions.</p><h3>Smaller PRs → smaller cognitive load</h3><p>A reviewer can look at:</p><p><strong>PR #1:</strong> Add the database model.</p><p>Then:</p><p><strong>PR #2:</strong> Add the API endpoint.</p><p>Then:</p><p><strong>PR #3:</strong> Connect the frontend.</p><p>Each PR has a much clearer purpose.</p><p>That can make reviews faster, discussions more focused, and feedback easier to incorporate.</p><h3>The old problem</h3><p>Stacked PRs weren&#39;t new.</p><p>Developers have been using this workflow for years.</p><p>But GitHub itself didn&#39;t provide a first-class experience for managing the stack, so teams often relied on tools such as GitHub CLI extensions, third-party services, or manual Git workflows.</p><p>GitHub&#39;s own gh-stack project describes the workflow as a chain of branches where each branch builds on the one below it, with each resulting PR showing the diff for its individual layer.</p><p>The challenge wasn&#39;t understanding the concept.</p><p>The challenge was <strong>managing the stack without creating a Git nightmare.</strong></p><h3>What changes with native GitHub support?</h3><p>The biggest win is that the relationship between these dependent PRs can now become part of the GitHub workflow itself.</p><p>Instead of thinking:</p><blockquote><em>“I have four branches and somehow need to keep them synchronized.”</em></blockquote><p>You can think:</p><blockquote><em>“I have one feature represented as four reviewable layers.”</em></blockquote><p>That&#39;s a much better mental model.</p><p>And I think that&#39;s the real value of this feature.</p><h3>Stacked PRs + AI coding</h3><p>This becomes even more interesting in the age of AI-assisted development.</p><p>AI coding tools can generate large amounts of code very quickly.</p><p>But <strong>human review hasn&#39;t become proportionally faster.</strong></p><p>If anything, the gap between <em>code generation speed</em> and <em>review capacity</em> is becoming more obvious.</p><p>That&#39;s where stacked PRs can become an important workflow.</p><p>Instead of asking an AI coding agent to produce one enormous PR containing an entire feature, the work can potentially be structured into smaller, logically dependent changes:</p><pre>PR 1 → Data layer<br>   ↓<br>PR 2 → API<br>   ↓<br>PR 3 → Business logic<br>   ↓<br>PR 4 → UI<br>   ↓<br>PR 5 → Tests</pre><p>The goal isn&#39;t simply to create <strong>more PRs</strong>.</p><p>The goal is to create <strong>better review boundaries</strong>.</p><p>That&#39;s an important distinction.</p><h3>But stacked PRs aren&#39;t automatically better</h3><p>There is a catch.</p><p>Poorly structured stacks can actually make development harder.</p><p>If you create ten tiny PRs for something that should have been one change, reviewers may spend more time navigating the stack than reviewing the code.</p><p>And if an early PR changes significantly, everything above it may need to be rebased or updated.</p><p>So the real skill isn&#39;t:</p><p><strong>“How do I create stacked PRs?”</strong></p><p>It&#39;s:</p><p><strong>“How do I decompose a feature into meaningful, independently reviewable layers?”</strong></p><p>That&#39;s a much more valuable engineering skill.</p><h3>A good stacked PR should answer one question</h3><p>For example:</p><p><strong>PR #1:</strong> Can we introduce this data model safely?</p><p><strong>PR #2:</strong> Can we expose it through the API?</p><p><strong>PR #3:</strong> Can the application consume the API?</p><p><strong>PR #4:</strong> Can we add the required tests?</p><p>Each PR should tell a relatively complete story.</p><p>That makes the stack easier to understand for everyone involved.</p><h3>My biggest takeaway</h3><p>I don&#39;t think the interesting part of GitHub&#39;s announcement is simply:</p><p>“GitHub now supports stacked PRs.”</p><p>The bigger shift is toward making large software changes more incremental and reviewable.</p><p>As software teams move toward higher development velocity — and especially as AI increases the amount of code being produced — the ability to break work into understandable, reviewable pieces becomes increasingly important.</p><p>Shipping faster isn’t just about generating code faster.</p><p>It’s about creating a workflow where humans can still understand, review, test, and confidently ship that code.</p><p>And stacked PRs are one piece of that puzzle.</p><p><em>Have you used stacked PRs before?</em></p><p><em>Would you use GitHub’s native implementation, or stick with tools you’ve already built your workflow around?</em></p><p><em>#GitHub #SoftwareEngineering #CodeReview #PullRequests #Git #DeveloperExperience #AI #Engineering</em></p><p><em>Happy Coding !!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d9b7ea0dda6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Angular to React: You’re Closer Than You Think]]></title>
            <link>https://medium.com/@manpreetkaur6311062/from-angular-to-react-youre-closer-than-you-think-79beefe96819?source=rss-eaff65c3e053------2</link>
            <guid isPermaLink="false">https://medium.com/p/79beefe96819</guid>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[migration]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[ManpreetKaur]]></dc:creator>
            <pubDate>Sat, 20 Jun 2026 18:48:35 GMT</pubDate>
            <atom:updated>2026-06-20T18:48:35.689Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9A9XiXAV91wgQn7YT_-LLg.png" /></figure><h3>Why Everything You Know Already Applies?</h3><h3><strong>The frameworks look different on the surface — but they’re solving the same problems</strong></h3><p>After spending more than 9 years building frontend applications across multiple industries, I’ve learned that technologies change much faster than software engineering fundamentals.</p><p>Over the years, I’ve worked extensively with Angular, TypeScript, .NET, hybrid mobile applications, design systems, and enterprise-scale frontend architectures. Recently, I’ve been exploring React to broaden my perspective and deepen my understanding of modern frontend development.</p><p>Like many Angular developers approaching React for the first time, I initially noticed all the differences. The JSX looked unfamiliar. There were no decorators, no NgModules, and the project structure felt completely different from what I was used to.</p><p>But after spending time with React, I realized something interesting:</p><p>The learning curve wasn’t nearly as steep as I expected.</p><p>The names are different. The syntax is different. The mental models are surprisingly similar.</p><p>In fact, if you’re already comfortable with Angular and TypeScript, you’re much closer to React proficiency than you might think.</p><p><em>This article isn’t about comparing which framework is better. It’s about translating concepts you already know into a React mindset so that learning React feels less like starting over and more like building on top of existing knowledge.</em></p><p><strong>The Core Idea Is the Same: Components All the Way Down<br></strong>Once you look beyond the syntax and framework-specific conventions, Angular and React are fundamentally trying to solve the same problems:</p><ul><li>Building reusable UI components</li><li>Managing application state</li><li>Handling user interactions</li><li>Rendering data efficiently</li><li>Communicating with APIs</li><li>Maintaining scalable codebases</li></ul><p>Both Angular and React are <strong>component-based UI frameworks</strong>. Every UI you build in either framework is a tree of components — each responsible for its own template, logic, and (optionally) styles.</p><p>In Angular, a component looks like this:</p><pre>@Component({<br>selector: &#39;app-greeting&#39;,<br>template: `&lt;h1&gt;Hello, {{ name }}!&lt;/h1&gt;`,<br>})<br>export class GreetingComponent {<br>@Input() name: string = &#39;&#39;;<br>}</pre><p>In React:</p><pre>function Greeting({ name }: { name: string }) {<br>return &lt;h1&gt;Hello, {name}!&lt;/h1&gt;;<br>}</pre><p>Different syntax, identical mental model. Both components accept data from a parent (@Input() vs props), both render a template, and both can be composed into larger UIs. The architectural instinct you’ve built in Angular — “break the UI into isolated, reusable components” — transfers directly.</p><p><strong>Props and @Input(): Same Concept, Different Syntax</strong></p><p>Angular uses @Input() decorators to receive data from a parent component. React passes data down via <strong>props</strong> — plain arguments to a function.</p><pre>// Angular<br>@Input() title: string = &#39;&#39;;<br><br>// React<br>function Card({ title }: { title: string }) { … }</pre><p>The data flow is identical: parent owns the data, child receives it, child doesn’t mutate it. This <strong>unidirectional data flow</strong> is a core principle in both frameworks. If you already understand why you shouldn’t mutate an @Input() in Angular, you already understand why you don’t mutate props in React.</p><p><strong>State Management: useState Is Just a Simpler Signal</strong></p><p>Angular 2+ uses class properties alongside ChangeDetectionStrategy to manage component state. Angular 16+ introduced Signals as a more reactive, fine-grained alternative. React has had hooks since 2019, and useState is its core primitive for local state.</p><p>typescript</p><pre>// Angular (with Signals)<br>count = signal(0);<br>increment() { this.count.set(this.count() + 1); }</pre><p>tsx</p><pre>// React<br>const [count, setCount] = useState(0);<br>const increment = () =&gt; setCount(c =&gt; c + 1);</pre><p>Both represent the same idea: a <strong>reactive value</strong> that, when changed, triggers a re-render. Angular’s Signals and React’s useState are conceptually near-identical. If you’ve been using Signals in modern Angular, the leap to useState and useReduceris minimal.</p><p><strong>Lifecycle Methods: Different Names, Same Moments</strong></p><p>Angular exposes well-defined lifecycle hooks: ngOnInit, ngOnChanges, ngOnDestroy, and others. React consolidates these into useEffect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TFtfktjQYj8GD838vtxQAw.png" /></figure><p>The React useEffect hook might look cryptic at first, but once you map it to Angular’s lifecycle model — “run when mounted, run when a dependency changes, clean up when unmounted” — it clicks instantly. You’re not learning a new concept; you’re learning a new spelling.</p><p><strong>Services and Dependency Injection → Custom Hooks</strong></p><p>This is one of the more elegant translations between the two frameworks. Angular’s <strong>services</strong> are injectable singletons that encapsulate shared logic — HTTP calls, auth state, business rules. They’re provided via Angular’s DI system and consumed via constructor injection.</p><p>React doesn’t have DI. But it has <strong>custom hooks</strong> — functions prefixed with use that encapsulate reusable stateful logic and can be shared across components.</p><p>typescript</p><pre>// Angular Service<br>@Injectable({ providedIn: &#39;root&#39; })<br>export class AuthService {<br>  isLoggedIn = signal(false);<br>  login() { this.isLoggedIn.set(true); }<br>}</pre><p>tsx</p><pre>// React Custom Hook<br>function useAuth() {<br>const [isLoggedIn, setIsLoggedIn] = useState(false);<br>const login = () =&gt; setIsLoggedIn(true);<br>return { isLoggedIn, login };<br>}</pre><p>The pattern is the same: extract logic from the component, make it reusable, compose it where needed. Angular developers who understand <em>why</em> services exist pick up custom hooks almost immediately.</p><p><strong>TypeScript: Your Biggest Head Start</strong></p><p>This is where the Angular advantage becomes concrete. Angular has been <strong>TypeScript-first from day one</strong>. React, by contrast, was built in JavaScript and TypeScript support was bolted on later.</p><p>This means:</p><ul><li>Many React tutorials and legacy codebases are written in plain JavaScript, which can feel foreign if you’ve only written .ts files</li><li>The React community is actively migrating toward TypeScript, so modern React is TypeScript-friendly</li><li><strong>But you already know TypeScript</strong> — so you skip the entire learning curve that JavaScript-first developers face</li></ul><p>Typing React components, props, hooks, and context with TypeScript is now idiomatic. And since you already think in types — interfaces, generics, type guards, utility types — you’ll write better React code out of the gate than many developers who learned React years ago in JavaScript.</p><p>tsx</p><pre>// TypeScript-typed React component — familiar territory for Angular devs<br>interface ButtonProps {<br>  label: string;<br>  onClick: () =&gt; void;<br>  variant?: &#39;primary&#39; | &#39;secondary&#39;;<br>}<br><br>function Button({ label, onClick, variant = &#39;primary&#39; }: ButtonProps) {<br>  return &lt;button className={`btn btn-${variant}`} onClick={onClick}&gt;{label}&lt;/button&gt;;<br>}</pre><p>If you’ve written Angular, that interface is old news. You’ve been doing this for years.</p><p><strong>RxJS Gives You a Mental Model for Async</strong></p><p>Angular’s deep integration with <strong>RxJS</strong> — Observables, operators, subscriptions — gives Angular developers an unusually sophisticated understanding of async data flows. React developers who learned async through Promises and callbacks often struggle with complex data orchestration.</p><p>You won’t use RxJS in React directly, but the mental models carry over:</p><ul><li><strong>Observables → React Query / SWR</strong>: Both model async data as a stream with loading, error, and success states</li><li><strong>Subject → useReducer + Context</strong>: Both model shared event-driven state</li><li><strong>pipe + operators → useMemo + useCallback</strong>: Both are about transforming and memoizing derived values</li></ul><p>Your RxJS fluency gives you an intuition for async that takes React-first developers much longer to develop.</p><p><strong>Routing: Same Ideas, Different Package</strong></p><p>Angular ships with @angular/router built in. React relies on third-party libraries — most commonly <strong>React Router</strong> (for SPAs) or <strong>Next.js</strong> (for full-stack apps with file-based routing).</p><p>The concepts are identical:</p><ul><li>Route definitions that map paths to components</li><li>Nested routes</li><li>Route parameters (:id)</li><li>Navigation guards / protected routes</li><li>Lazy loading</li></ul><pre>// Angular route<br>{ path: &#39;users/:id&#39;, component: UserDetailComponent, canActivate: [AuthGuard] </pre><pre>// React Router v6<br>&lt;Route path=&quot;/users/:id&quot; element={&lt;PrivateRoute&gt;&lt;UserDetail /&gt;&lt;/PrivateRoute&gt;} /&gt;</pre><p>The difference is mostly boilerplate. The thinking is the same.</p><p><strong>Where React Is Actually Different (And Why That’s Fine)</strong></p><p>Honesty matters here. There are real differences, not just surface-level ones:</p><p><strong>No two-way binding by default.</strong> Angular’s [(ngModel)] doesn’t exist in React. Forms are either <em>controlled</em> (state-driven) or <em>uncontrolled</em> (ref-driven). Libraries like React Hook Form fill the gap and are excellent — but it’s a genuine adjustment.</p><p><strong>No built-in module system.</strong> Angular’s NgModule is gone. Modern Angular with standalone components is actually converging toward React’s model here, but if you’re used to modules, the flat component landscape of React takes some getting used to.</p><p><strong>JSX is not a template language.</strong> Angular templates are HTML-enhanced with directives (*ngIf, *ngFor). JSX is JavaScript-in-HTML. The control flow is just JavaScript: &amp;&amp;, ternaries, .map(). It feels odd for about a week, then you can’t imagine going back.</p><p><strong>State colocation.</strong> Angular’s DI system naturally encourages centralized services. React encourages keeping state as local as possible and lifting it only when needed. This leads to different architectural habits, though the endpoint (a clean component tree with predictable data flow) is the same.</p><p><strong>A Practical Path Forward</strong></p><p>If you’re an Angular developer who wants to add React to your toolkit, here’s the honest roadmap:</p><ol><li><strong>Don’t start with a framework on top of React</strong> (skip Next.js for now). Learn raw React with Vite to understand the fundamentals.</li><li><strong>Use TypeScript from day one.</strong> Don’t let anyone tell you to learn React in JavaScript first — you’ll just learn bad habits you’ll have to unlearn.</li><li><strong>Map concepts explicitly.</strong> Every time you hit something unfamiliar, ask: “What’s the Angular equivalent?” More often than not, there is one.</li><li><strong>Build something small.</strong> A todo app, a weather widget, a simple CRUD form. Muscle memory comes from writing, not reading.</li><li><strong>Then learn React Query and React Router.</strong> These two libraries, combined with React itself, cover 80% of what Angular gives you out of the box.</li></ol><p><strong>The Bottom Line</strong></p><p>Angular and React aren’t enemies. They’re two mature solutions to the same problem, shaped by different philosophies. Angular chose batteries-included and convention over configuration. React chose minimal core and ecosystem freedom.</p><p>The concepts that make you a good Angular developer — component decomposition, unidirectional data flow, typed interfaces, reactive state, separation of logic and presentation — are the same concepts that make a good React developer.</p><p>You haven’t been learning Angular. You’ve been learning <strong>how to build UIs</strong>. The syntax is just the accent.</p><p><em>Have you made the Angular-to-React jump? What surprised you most — good or bad? Drop it in the comments.</em></p><p><em>If you found this useful, follow me on Medium — it genuinely motivates me to keep writing and sharing more real-world Angular/Front-end content.</em></p><p><strong><em>Happy coding.<br>More coming your way.</em></strong><em>👩‍💻💡</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79beefe96819" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Spent 8–9 Years as a Software Engineer… Then I Hit a Wall]]></title>
            <link>https://medium.com/@manpreetkaur6311062/i-spent-8-9-years-as-a-software-engineer-then-i-hit-a-wall-3934e231a61e?source=rss-eaff65c3e053------2</link>
            <guid isPermaLink="false">https://medium.com/p/3934e231a61e</guid>
            <category><![CDATA[mindset-shift]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[career-paths]]></category>
            <category><![CDATA[software-enginnering]]></category>
            <category><![CDATA[software]]></category>
            <dc:creator><![CDATA[ManpreetKaur]]></dc:creator>
            <pubDate>Sun, 29 Mar 2026 19:03:19 GMT</pubDate>
            <atom:updated>2026-03-29T19:03:19.474Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gIhmKyhxyeFn95T4EL7coQ.png" /></figure><p>For the past 8–9 years, I’ve been working as a full-stack developer, primarily with .NET on the backend and Angular on the frontend. I started this journey excited about building things, solving problems, and continuously learning, but somewhere along the way, from last couple of years as I moved to front-end fully I observed something has shifted, I am not as exited as I used to be.</p><p>I think redundant tasks, looking at the same environment everyday, similar pattern of work, components, modules etc kind of got boring. <br>I mean “Bored ” is not the exact word but yes it is close.</p><p>It wasn’t about disliking the work. It was more about the repetition. At some point, it started to feel like I was operating in a loop.And that’s when a realization hit me:<br> I wasn’t growing the way I wanted to as an engineer.</p><p><strong>The Comfort Trap</strong></p><p>I think there’s a phase in every developer’s career where things become comfortable, I mean the it’s the</p><p>known framework.<br> known architecture.<br> You can deliver faster than before and while that sounds ideal — it can quietly become a trap, because growth doesn’t usually live in comfort.</p><p>I started feeling like I wasn’t “engineering” anymore — I was just implementing. Executing patterns I already knew. Solving problems I had already solved before.</p><p>That’s when I knew I needed a shift, I needed a challenge may be not a 360 degree change but somewhat around 45 or 90 degrees haha you know what I mean :) .</p><p><strong>The Shift (Even If It’s Small)</strong></p><p>After exploring different options for quite some time, I recently joined a consultancy as a Senior Developer focused on mobile application development — for both iOS and Android.</p><p>The interesting part about this is that :At its core, I’m still writing Angular, but the context has changed completely.This is a hybrid mobile setup where Angular is used alongside a bridge (like Capacitor) to generate native iOS and Android applications.So while the language feels familiar, the environment does not and that makes all the difference.</p><p><strong>What’s New (And Why It Matters)</strong></p><p>Even though this may not seem like a massive shift on paper, it has already opened up multiple new learning paths:</p><ul><li><strong>Mobile development concepts</strong> (performance, device behavior, lifecycle differences)</li><li><strong>Hybrid architecture patterns</strong></li><li><strong>Working beyond the browser</strong></li><li><strong>Understanding native bridges like Capacitor</strong></li><li><strong>Backend shift from .NET to Node.js</strong></li><li><strong>Micro frontend architecture</strong></li><li><strong>Collaboration across distributed teams and modules</strong></li></ul><p>I’m currently working at a Bank on digital wallet features within a micro frontend ecosystem — where multiple teams own different parts of the system, this all is pretty new &amp; interesting to me. There’s also exposure to <strong>fraud detection mechanisms</strong>, integrating with third-party systems that help prevent fraudulent activities etc for Credit Cards and their safety.<br>All of this has brought back something I hadn’t felt in a while:</p><blockquote><strong><em>Curiosity.</em></strong></blockquote><p><strong>Growth Feels Different Now</strong></p><p>I’ve only been in this role for about a month, but I can already feel the difference.There’s uncertainty &amp; challenge again, some things I don’t fully understand (yet) and definitely there’s a learning curve surprisingly — that feels good.Because it reminds me that growth isn’t about abandoning everything you know, sometimes, it’s about placing yourself in a slightly unfamiliar environment and letting that stretch you.</p><p><strong>What’s Next</strong></p><p>This transition has sparked something in me.</p><p>I want to go deeper — not just into hybrid mobile development, but also into:</p><ul><li>Building scalable frontend architectures</li><li>Exploring backend systems in Node.js</li><li>Understanding system design across platforms</li><li>Experimenting with AI integrations in applications</li></ul><p>So there is gonna be a lot of articles in the upcoming weeks about what new things I am learning and reading about.<br>especially:</p><ul><li>Hybrid Angular/mobile development insights</li><li>Real-world bugs and fixes</li><li>Architecture learnings</li><li>Practical engineering challenges</li></ul><p><strong>Final Thought</strong></p><p>If you’ve been feeling stuck in your role — even if everything seems “fine” on the surface — it’s worth paying attention to that feeling.You might not need a complete reset.</p><p>Sometimes, even a small shift in direction can unlock a whole new phase of growth.</p><p><strong><em>And that’s exactly where I am right now — <br> Not starting over, but starting fresh.</em></strong></p><p><strong><em>More to come soon.</em></strong> <br>Cheers!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3934e231a61e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Senior Level Angular Interview Questions (Scenario Based) 2026]]></title>
            <link>https://medium.com/@manpreetkaur6311062/senior-level-angular-interview-questions-scenario-based-2026-bf3399add93b?source=rss-eaff65c3e053------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf3399add93b</guid>
            <category><![CDATA[rxjs]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[rxjs-operators]]></category>
            <category><![CDATA[angular]]></category>
            <dc:creator><![CDATA[ManpreetKaur]]></dc:creator>
            <pubDate>Thu, 19 Feb 2026 05:18:47 GMT</pubDate>
            <atom:updated>2026-08-17T17:14:43.415Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V2zL51KqlpeQld50vEQX8w.png" /></figure><p>I have curated this article to bring together a set of unique, scenario-based Angular interview questions and answers. These aren’t just textbook or theory-heavy questions — they’re practical, real-world situations you’re likely to run into as a developer.</p><p>The goal is to move beyond memorized definitions and really test how well someone understands Angular concepts, architectural decisions, and problem-solving in real applications. Each scenario is meant to dig a little deeper and show how a developer thinks when building production-ready apps.</p><h3>Question 1: Change Detection &amp; Performance (Scenario)</h3><p>You join a project where a large Angular dashboard is very slow.</p><ol><li>How would you diagnose the performance issue?What specific Angular techniques would you apply to fix it?</li><li>In what cases would you use OnPush, and what problems could it introduce?</li><li>Hint: It has:</li></ol><ul><li>Hundreds of rows in tables</li><li>Multiple nested components</li><li>Frequent API polling every few seconds</li><li>Users complain about UI lag and high CPU usage</li></ul><h3>Question 2: State Management Architecture</h3><p>You’re building a <strong>large enterprise Angular app</strong> with:</p><ul><li>20+ modules</li><li>Shared data across many components</li><li>Complex workflows</li><li>Multiple API calls that affect the same data</li></ul><p>Different team members propose:</p><ol><li>Using only services with BehaviorSubjects</li><li>Using NgRx</li><li>Using Angular Signals only</li></ol><p><strong>Question:</strong></p><p>As a senior developer:</p><ol><li>How would you decide which state management approach to use?</li><li>When would you choose NgRx over services?</li><li>How would you structure state in a scalable Angular application?</li></ol><h3>Question 3: Lazy Loading &amp; Module Architecture (Scenario)</h3><p>You join a project where:</p><ul><li>The initial bundle size is <strong>6 MB</strong></li><li>First load time is very slow</li><li>All features are loaded in AppModule</li><li>There are 15 major features (admin, reports, dashboard, users, etc.)</li></ul><p><strong>Question:</strong></p><ol><li>How would you restructure the app to improve load performance?</li><li>What is the difference between eager loading and lazy loading?</li><li>What are the risks or mistakes developers make with lazy-loaded modules?</li></ol><h3>Question 4: RxJS &amp; Memory Leaks (Scenario)</h3><p>You join a project where:</p><ul><li>Users report the app becomes slower the longer it runs.</li><li>Chrome shows increasing memory usage.</li></ul><p><strong>Question:</strong></p><ol><li>Why is this a problem?</li><li>How would you fix it across the application?</li><li>What are the best practices to avoid memory leaks in Angular?</li></ol><h3>Question-5 Dependency Injection Scenario</h3><p>You join a project where:</p><ul><li>The same UserService is behaving differently in two modules.</li><li>In one module, the user is logged in.</li><li>In another module, the user appears logged out.</li><li>Both modules are lazy-loaded.</li></ul><h3>Questions</h3><ol><li>Why is this happening?</li><li>How does Angular’s dependency injection behave with lazy-loaded modules?</li><li>What is the correct way to provide services in a large Angular app?</li></ol><p>Hint :</p><pre>@NgModule({<br>  providers: [UserService]<br>})<br>export class AdminModule {}<br><br><br>@NgModule({<br>  providers: [UserService]<br>})<br>export class ReportsModule {}</pre><h3>Question 6: Angular vs Reactivity Models</h3><p>Angular now supports:</p><ul><li>RxJS Observables</li><li>Signals</li></ul><p><strong>Question:</strong></p><ol><li>What problem do signals solve in Angular?</li><li>When would you use signals instead of observables?</li><li>Can signals replace RxJS completely? Why or why not?</li></ol><h3>RxJS operator scenario based questions-</h3><h3>Question 1: Dependent API Calls</h3><p>Scenario:</p><p>You have a form where a user selects a <strong>country</strong>, then based on the selected country, you need to fetch a <strong>list of states</strong> from the backend.</p><ul><li>Each time the user changes the country, you must cancel the previous API call if it hasn’t completed yet.</li><li>Only the latest selection’s states should be displayed.</li></ul><p><strong>Question:</strong></p><p>Which RxJS operator would you use to handle this scenario and why?</p><h3>Question 2: Multiple Parallel API Calls</h3><p>Scenario:</p><p>You have a <strong>dashboard component</strong> that needs to fetch <strong>user info</strong>, <strong>notifications</strong>, and <strong>recent orders</strong> all at the same time when it loads.</p><ul><li>All three API calls are independent.</li><li>You want to <strong>wait for all of them</strong> before displaying the dashboard.</li></ul><p><strong>Question:</strong></p><p>Which RxJS operator would you use here and why?</p><h3>Question 3: Sequential API Calls</h3><p>Scenario:</p><p>You have a <strong>login form</strong>. After the user logs in:</p><ol><li>You call login() API.</li><li>If login succeeds, you call getUserProfile() API using the token returned from login.</li></ol><p><strong>Requirement:</strong></p><ul><li>getUserProfile() <strong>must run only after login completes</strong>.</li></ul><p><strong>Question:</strong></p><p>Which operator would you use and why?</p><h3>Question 4: Ignoring New Requests While Running</h3><p>Scenario:</p><p>You have a <strong>“Submit” button</strong> in a form. Users sometimes click it multiple times very quickly.</p><ul><li>You want the <strong>first API call</strong> to run.</li><li>While it’s running, <strong>ignore additional clicks</strong>.</li><li>Once the first call finishes, allow the next click to trigger a new request.</li></ul><p><strong>Question:</strong></p><p>Which RxJS operator would you use and why?</p><h3>Question 5: Debounced Search</h3><p>Scenario:</p><p>You have a <strong>search input</strong> in a component. As the user types, you call an API to fetch suggestions.</p><p>Requirements:</p><ul><li>Only make a request <strong>after the user stops typing for 300ms</strong>.</li><li>Cancel the previous request if the user keeps typing.</li></ul><p><strong>Question:</strong></p><p>Which RxJS operator(s) would you use and why?</p><h3>Question 6: Retry Failed API Call</h3><p>Scenario:</p><p>You are fetching <strong>critical configuration</strong> from the backend during app initialization.</p><ul><li>Sometimes the API fails due to network issues.</li><li>You want to <strong>retry the call up to 3 times</strong> before showing an error.</li></ul><p><strong>Question:</strong></p><p>Which RxJS operator would you use to implement this retry logic?</p><h3>Question 7: Caching API Data</h3><p>Scenario:</p><p>You have a service that fetches <strong>user roles</strong> from the backend.</p><ul><li>Multiple components in different modules subscribe to this data.</li><li>You want to <strong>avoid making the same API call multiple times</strong> but still share the result with new subscribers.</li></ul><p><strong>Question:</strong></p><p>Which RxJS operator would you use to cache the observable result?</p><h3>Question 8: Combine Multiple Streams</h3><p>Scenario:</p><p>You have:</p><ul><li>selectedProduct$ — emits the product selected by the user</li><li>quantity$ — emits the quantity entered by the user</li></ul><p>You need to calculate <strong>total price</strong> every time <strong>either the product or quantity changes</strong>.</p><p><strong>Question:</strong></p><p>Which RxJS operator would you use to combine these streams reactively?</p><h3>Question 9: Trigger Another Observable with Latest Value</h3><p>Scenario:</p><p>You have a <strong>button click</strong> observable.</p><ul><li>On click, you need to submit the <strong>current value of a form</strong>.</li><li>The form values are emitted as an observable (formValue$).</li></ul><p><strong>Question:</strong></p><p>Which RxJS operator ensures that <strong>on every click</strong>, you get the <strong>latest form value</strong> without subscribing directly to the form observable inside the click subscription?</p><h3>Question 10: Handle Error Gracefully</h3><p>Scenario:</p><p>You are fetching <strong>user profile data</strong>, but sometimes the API returns an error.</p><ul><li>You want to <strong>show a fallback value</strong> instead of breaking the stream.</li></ul><p><strong>Question:</strong></p><p>Which RxJS operator would you use to handle this scenario?</p><h3>Question 11: Parallel Dependent Requests</h3><p>Scenario:</p><p>You have <strong>multiple API calls</strong> that need to happen in <strong>parallel</strong>, but after all of them complete, you need to <strong>perform another API call</strong> using the combined results.</p><p><strong>Question:</strong></p><p>Which combination of RxJS operators would you use here?</p><h3>Question 12: Avoid Multiple API Calls for Rapid Events</h3><p>Scenario:</p><p>You have a <strong>window resize event</strong> observable.</p><ul><li>The handler calls a heavy calculation API.</li><li>You want to <strong>limit the API calls to once every 500ms</strong>, even if the event fires more frequently.</li></ul><p><strong>Question:</strong></p><p>Which RxJS operator would you use?</p><p><em>I’ll be breaking down detailed answers in a separate post and linking it here — that’ll be Part 2 (coming soon 👀).</em></p><p><em>If you found this useful, follow me on Medium — it genuinely motivates me to keep writing and sharing more real-world Angular content.</em></p><p><strong><em>Happy coding.<br>More coming your way.</em></strong><em>👩‍💻💡</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf3399add93b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Content-Disposition Header Problem solved — Angular (.Net Core)]]></title>
            <link>https://medium.com/@manpreetkaur6311062/content-disposition-header-problem-solved-angular-net-core-2c6df714a116?source=rss-eaff65c3e053------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c6df714a116</guid>
            <category><![CDATA[download]]></category>
            <category><![CDATA[http-headers]]></category>
            <category><![CDATA[content-disposition]]></category>
            <category><![CDATA[dot-net-core]]></category>
            <category><![CDATA[angular]]></category>
            <dc:creator><![CDATA[ManpreetKaur]]></dc:creator>
            <pubDate>Sat, 29 Nov 2025 23:01:57 GMT</pubDate>
            <atom:updated>2025-11-29T23:01:57.576Z</atom:updated>
            <content:encoded><![CDATA[<h3>Content-Disposition Header Problem solved — Angular (.Net Core)</h3><p>Steps to debug and resolve -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TRr0AbtciwDNhWAKIjCDhg.png" /></figure><h3>What is Content-Disposition?</h3><p>Content-Disposition is an HTTP header used to specify how content should be handled by the browser. The two main types are:</p><ul><li><strong>inline</strong> → Display the content in the browser.</li><li><strong>attachment</strong> → Force the browser to download the file.</li></ul><pre>Content-Disposition: attachment; filename=&quot;example.pdf&quot;</pre><h3>Problem :</h3><p>When working on a feature to download a report file in an Angular application (with a .NET Core backend), I ran into an annoying issue:</p><p><strong>The backend response didn’t include a </strong><strong>Content-Disposition header — at least not from Angular’s perspective.</strong></p><p>But after the backend debugging I confirmed the header <em>was</em> being sent.<br>CORS policies were correct.<br>Postman showed the header perfectly.<br>And yet, Angular’s HttpClient kept returning:</p><p>Content-Disposition: null/undefined or ~ not found</p><h3>The Root Cause</h3><p>The issue was NOT the backend.</p><p>The issue was NOT CORS.</p><p>The issue was NOT missing headers.</p><p>The <strong>actual issue</strong> in my case was — <br>was that <strong>my Angular service call used a normal </strong><strong>get() instead of a GET request with </strong><strong>{ observe: &#39;response&#39; }.</strong></p><p>A standard Angular get() call ONLY returns the body — <strong>NOT the headers</strong>.</p><p>So even though the server was sending:</p><p><em>Content-Disposition: attachment; filename=”comparison.csv”</em></p><p>Angular never exposed it, because I wasn’t observing the full HTTP response.</p><h3>The Old Angular Service (Failing Version)</h3><p>My service looked like this:</p><pre>generateComparisonReport(id: number, version: number, options: any) {<br>  const url = `${environment.api.generateReport}/${id}/version/${version}/comparison-report`;<br>  return this.apiClient.get(url, options);<br>}</pre><p>And inside apiClient.get() the call ultimately did:</p><pre>return this.http.get(url, options);</pre><p>Angular only returned the <strong>body</strong>, never the headers.<br> Therefore, Content-Disposition always appeared to be missing.</p><h3><strong>The Solution</strong></h3><p>I created a <em>new</em> reusable method inside api.service.ts:</p><pre>getWithResponse&lt;T&gt;(path: string, options?: HttpOptions): Observable&lt;HttpResponse&lt;T&gt;&gt; {<br>  const url = `${environment.apiBaseUrl}/${path}`;<br><br>  return this.http.get&lt;T&gt;(url, {<br>    ...this.setOptions(options),<br>    observe: &#39;response&#39;<br>  });<br>}</pre><h4>changed the call to -</h4><pre>generateComparisonReport(id: number, version: number, options: any) {<br>  const url = `${environment.api.generateReport}/${id}/version/${version}/comparison-report`;<br>  return this.apiClient.getWithResponse(url, options);<br>}</pre><h3>What this change does:</h3><ul><li>observe: &#39;response&#39; tells Angular to return the <strong>full</strong> HttpResponse object</li><li>Now I can access:</li><li>response.headers</li><li>response.status</li><li>response.statusText</li><li>AND the Content-Disposition header</li></ul><h3>How I Checked if the Header Was still Missing</h3><p>In the component:</p><pre>this.service.generateComparisonReport(id, version, opts)<br>  .subscribe((response) =&gt; {<br>    const cd = response.headers.get(&#39;Content-Disposition&#39;);<br><br>    // Check for missing header<br>    if (!cd) {<br>      console.error(&#39;Content-Disposition header is missing (null/undefined/not found)&#39;);<br>    } else {<br>      console.log(&#39;Header found:&#39;, cd);<br>    }<br><br>    const blob = response.body!;<br>    const url = URL.createObjectURL(blob);<br><br>    const a = document.createElement(&#39;a&#39;);<br>    a.href = url;<br>    a.download = &#39;comparison.csv&#39;;<br>    a.click();<br>  });</pre><h3>!cd covers all cases:</h3><ul><li>undefined</li><li>null</li><li>empty string</li><li>header not present at all</li></ul><h3>Final Result</h3><p>Without touching the backend at all, I solved the issue by ensuring Angular grabbed the <strong>full</strong> HTTP response instead of only the body.</p><p>The missing Content-Disposition header was <em>never missing</em>.<br>Angular simply wasn&#39;t retrieving it.</p><p>“Whenever you’re dealing with file downloads in Angular, always remember:<br><strong>you must use </strong><strong>observe: &#39;response&#39; to access headers.</strong><br>Otherwise, Angular silently hides them and you may waste hours debugging something that’s actually working.”</p><h3>Other Common Content-Disposition Errors-</h3><p><strong>1)Filename issues</strong></p><ul><li><strong>Error</strong>: Browser shows a wrong filename or a filename with strange characters.</li><li><strong>Cause</strong>: Improper handling of non-ASCII characters or missing quotes.</li><li><strong>Solution</strong>: Use proper encoding and quotes. For example:</li></ul><pre>Content-Disposition: attachment; filename=&quot;example.pdf&quot;; filename*=UTF-8&#39;&#39;example.pdf</pre><p><strong>2)Inline content being downloaded</strong></p><ul><li><strong>Error</strong>: Content meant to display in the browser triggers a download instead.</li><li><strong>Cause</strong>: Header mistakenly set to attachment instead of inline, or MIME type is unrecognized.</li></ul><p><strong>Solution</strong>: Check and set correct header:</p><pre>Content-Disposition: inline; filename=&quot;example.html&quot;</pre><p><strong>3)Download fails in certain browsers</strong></p><ul><li><strong>Error</strong>: Works in Chrome but fails in IE/Edge or Safari.</li><li><strong>Cause</strong>: Some browsers have stricter rules for filename encoding.</li><li><strong>Solution</strong>: Use filename* with UTF-8 encoding for compatibility:</li></ul><pre>Content-Disposition: attachment; filename=&quot;example.pdf&quot;; filename*=UTF-8&#39;&#39;example.pdf</pre><p><strong>Double download prompts</strong></p><ul><li><strong>Error</strong>: User sees multiple download dialogs.</li><li><strong>Cause</strong>: Server sends multiple Content-Disposition headers or the browser misinterprets caching.</li><li><strong>Solution</strong>: Ensure only <strong>one header</strong> is sent and set proper caching headers:</li></ul><pre>Cache-Control: no-cache</pre><p><strong>Special characters in filename</strong></p><ul><li><strong>Error</strong>: filename=&quot;file(1).pdf&quot; downloads as file_1.pdf or breaks.</li><li><strong>Cause</strong>: Certain characters are not allowed without encoding.</li><li><strong>Solution</strong>: Encode the filename properly (URL encoding or RFC 5987):</li></ul><pre>Content-Disposition: attachment; filename=&quot;file%281%29.pdf&quot;; filename*=UTF-8&#39;&#39;file%281%29.pdf</pre><h3>3. Tips for Avoiding Content-Disposition Errors</h3><ul><li>Always quote filenames: filename=&quot;example.pdf&quot;.</li><li>Use filename* for non-ASCII characters.</li><li>Set correct MIME type: browsers rely on Content-Type alongside Content-Disposition.</li><li>Test downloads in multiple browsers (Chrome, Firefox, Safari, Edge, IE).</li><li>Avoid sending multiple Content-Disposition headers.</li></ul><h3><strong>Other debugging strategies — </strong><br>Make sure you test the following before — <br>1.<strong>Fix on .NET Core Backend</strong></h3><p>Return the file <strong>with</strong> the Content-Disposition header:</p><pre>[HttpGet(&quot;download&quot;)]<br>public IActionResult Download()<br>{<br>    var fileBytes = System.IO.File.ReadAllBytes(&quot;compare.csv&quot;);</pre><pre>    Response.Headers.Add(&quot;Content-Disposition&quot;, &quot;attachment; filename=compare.csv&quot;);<br>    Response.Headers.Add(&quot;Access-Control-Expose-Headers&quot;, &quot;Content-Disposition&quot;);</pre><pre>    return File(fileBytes, &quot;application/octet-stream&quot;);<br>}</pre><h3>Important</h3><p>Access-Control-Expose-Headers is <strong>required</strong>, otherwise Angular won’t see the header even if it&#39;s there.</p><h3><strong>2. Fix CORS in Program.cs</strong></h3><pre>builder.Services.AddCors(options =&gt;<br>{<br>    options.AddPolicy(&quot;AllowAngular&quot;, policy =&gt;<br>        policy.WithOrigins(&quot;http://localhost:4200&quot;)<br>              .AllowAnyHeader()<br>              .AllowAnyMethod()<br>              .WithExposedHeaders(&quot;Content-Disposition&quot;));<br>});</pre><h3><strong>3.Angular Download Code</strong></h3><p>Angular MUST request the full response:</p><pre>this.http.get(&#39;https://localhost:5001/download&#39;, {<br>  observe: &#39;response&#39;,<br>  responseType: &#39;blob&#39;<br>}).subscribe(response =&gt; {<br>  const contentDisposition = response.headers.get(&#39;Content-Disposition&#39;);</pre><pre>  let filename = &#39;download.csv&#39;;<br>  if (contentDisposition) {<br>    const match = contentDisposition.match(/filename=&quot;?(.+)&quot;?/);<br>    if (match &amp;&amp; match[1]) filename = match[1];<br>  }</pre><pre>  const blob = new Blob([response.body!]);<br>  const url = window.URL.createObjectURL(blob);</pre><pre>  const a = document.createElement(&#39;a&#39;);<br>  a.href = url;<br>  a.download = filename;<br>  a.click();<br>});</pre><p><em>If you learned something from this today,<br>follow me on Medium — it truly motivates me to write more.</em><br><strong><em>Happy coding!</em></strong></p><p><strong><em>Cheers!!</em></strong></p><p><strong><em>Stay tuned for more </em></strong><em>👩‍💻💡</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c6df714a116" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migrating from Angular 11 to Angular 17]]></title>
            <link>https://medium.com/@manpreetkaur6311062/migrating-from-angular-11-to-angular-17-5ffddaaefdc1?source=rss-eaff65c3e053------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ffddaaefdc1</guid>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[angular-migration]]></category>
            <category><![CDATA[angular-17]]></category>
            <category><![CDATA[dependency-injection]]></category>
            <category><![CDATA[angular-signals]]></category>
            <dc:creator><![CDATA[ManpreetKaur]]></dc:creator>
            <pubDate>Sat, 15 Nov 2025 00:32:59 GMT</pubDate>
            <atom:updated>2025-11-28T18:15:36.699Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EZmsa6UGE_CQ-kf7riJ7XA.png" /></figure><h3>What I Actually Changed (basic changes and Why It Made Everything Better) Part- 1</h3><p>If you’ve been maintaining an Angular project that started pre-2021, you know the feeling. Over the years, Angular evolved — faster build systems, smarter change detection, standalone components, signals — while your old codebase stayed… stuck.</p><p>Recently, I had the chance to upgrade a fairly large Angular 11 application all the way up to Angular 17, as this was dependent on Metronic template -metronic -8 which only supports untill Angular 17.<br>This wasn’t just a framework bump; it was a full modernization effort.</p><p>In this article, I’ll walk you through the <strong>real, practical changes</strong> I made — what I removed, what I replaced, and the cleaner patterns that Angular 17 enables. No vague bullet points. No buzzwords. Just the concrete improvements that transformed the codebase.</p><h3>Why Even Upgrade?</h3><p>Angular 11 still works, technically. But by today’s standards, it’s slow, verbose, and missing some of the most impactful features Angular has ever released — like signals, inject(), automatic subscription cleanup, and the new build system.</p><p>If your goal is maintainability, readability, and performance, upgrading isn’t optional anymore.</p><h3>1. Moving from Constructor Injection to inject()</h3><p>One of the biggest quality-of-life upgrades was adopting Angular’s modern dependency injection API.</p><h3>Before (Angular 11 style)</h3><pre>export class UserService {<br>  constructor(private http: HttpClient, private logger: LoggerService) {}<br>}</pre><h3>After (Angular 17 style)</h3><pre>import { inject } from &#39;@angular/core&#39;;<br><br>export class UserService {<br>  private http = inject(HttpClient);<br>  private logger = inject(LoggerService);<br>}</pre><h3>Why this is better</h3><ul><li>No more cluttered constructors</li><li>Dependencies become self-documenting class properties</li><li>Order no longer matters</li><li>Works beautifully with standalone components and functions</li></ul><p>Once I used inject() consistently, my components felt cleaner and more readable.</p><h4>Cleaner Class Structure by Moving Injections to Properties</h4><p>Using inject() allowed me to simplify components even further.</p><pre>private api = inject(ApiService);<br>private store = inject(StoreService);</pre><p>This reduce the use of constructors for dependency injection and makes dependencies easier to manage, test, and scan at a glance.</p><h3>2. Automatic Subscription Cleanup With takeUntilDestroyed()</h3><p>One of the biggest pain points in Angular 11 was manually managing subscriptions:</p><pre>private destroy$ = new Subject&lt;void&gt;();<br><br>ngOnInit() {<br>  this.service.getData().subscribe(...);<br>}<br><br>ngOnDestroy() {<br>  this.destroy$.next();<br>  this.destroy$.complete();<br>}</pre><p>Angular 16+ fixes this with takeUntilDestroyed()</p><p><a href="https://angular.dev/api/core/rxjs-interop/takeUntilDestroyed">https://angular.dev/api/core/rxjs-interop/takeUntilDestroyed</a></p><h3>After Migration:</h3><pre>import { takeUntilDestroyed } from &#39;@angular/core/rxjs-interop&#39;;<br><br>this.api.getData()<br>  .pipe(takeUntilDestroyed(this.destroyRef))<br>  .subscribe(res =&gt; this.data.set(res));</pre><h3>What improved</h3><ul><li>No destroy$ subjects</li><li>No subscription arrays</li><li>No manual ngOnDestroy()</li><li>Zero chance of memory leaks</li></ul><p>This change alone removed dozens of lines of boilerplate from each feature module.</p><p>The difference: components became smaller, more declarative, and easier to read.</p><h3>3. Introducing Signals for UI State (Loaders, Flags, Grid Data)</h3><p>Signals are the most impactful reactive feature Angular has introduced.</p><p><a href="https://angular.dev/guide/signals">https://angular.dev/guide/signals</a></p><p>I replaced a variety of BehaviorSubject variables used for UI state:</p><h3>Before</h3><pre>isLoading = new BehaviorSubject&lt;boolean&gt;(false);</pre><h3>After</h3><pre>isLoading = signal&lt;boolean&gt;(false);</pre><p>Signals were also used for:</p><ul><li>loader states</li><li>enable/disable flags</li><li>grid/table data</li><li>filtering results</li></ul><h3>Why signals are so clean</h3><ul><li>No subscriptions</li><li>Instant synchronous access via signal() calls</li><li>Perfect for templating</li><li>No async pipes needed</li><li>More predictable change detection</li></ul><p>Using signals made the UI layer feel dramatically simpler.</p><h3>4. Using Signals for Grid/Table Binding (Kendo Grid Example)</h3><p>Instead of passing Observables into the grid with async pipes, I switched to a signal:</p><pre>gridView = signal&lt;Employee[]&gt;([]);</pre><p>Filtering or updating data is as simple as:</p><pre>this.gridView.set(filteredData);</pre><p>This made grid updates immediate and removed a lot of transformation logic that previously lived in Observables.</p><h4>BONUS: <br>Kendo UI Grid Implementation Using signals- <br>employee-grid.component.ts</h4><pre>import { Component, signal } from &#39;@angular/core&#39;;<br>import { process } from &#39;@progress/kendo-data-query&#39;;<br><br>interface Employee {<br>  id: number;<br>  name: string;<br>  department: string;<br>  age: number;<br>}<br><br>@Component({<br>  selector: &#39;app-employee-grid&#39;,<br>  templateUrl: &#39;./employee-grid.component.html&#39;<br>})<br>export class EmployeeGridComponent {<br><br>  // Original dataset (not a signal)<br>  gridData: Employee[] = [];<br><br>  // Filtered view bound to Kendo Grid<br>  gridView = signal&lt;Employee[]&gt;([]);<br><br>  // Disable export buttons if no results<br>  isExportDisabled = signal(false);<br><br>  // Selection<br>  mySelection: number[] = [];<br><br>  // Kendo paging state<br>  dataBinding = {<br>    skip: 0<br>  };<br><br>  constructor() {<br>    this.loadEmployees();<br>  }<br><br>  loadEmployees() {<br>    this.gridData = [<br>      { id: 1, name: &#39;Alice&#39;, department: &#39;HR&#39;, age: 28 },<br>      { id: 2, name: &#39;Bob&#39;, department: &#39;IT&#39;, age: 32 },<br>      { id: 3, name: &#39;Carol&#39;, department: &#39;Finance&#39;, age: 26 },<br>      { id: 4, name: &#39;David&#39;, department: &#39;Marketing&#39;, age: 29 },<br>    ];<br><br>    this.gridView.set(this.gridData);<br>  }<br><br>  // Updated filter method with your structure<br>  public onFilter(inputValue: string): void {<br>    const processed = process(this.gridData, {<br>      filter: {<br>        logic: &#39;or&#39;,<br>        filters: [<br>          {<br>            field: &#39;name&#39;,<br>            operator: &#39;contains&#39;,<br>            value: inputValue<br>          },<br>          {<br>            field: &#39;department&#39;,<br>            operator: &#39;contains&#39;,<br>            value: inputValue<br>          }<br>        ],<br>      },<br>    }).data;<br><br>    this.gridView.set(processed);<br>    this.dataBinding.skip = 0;<br><br>    this.isExportDisabled.set(this.gridView().length === 0);<br>  }<br>}</pre><p>employee-grid.component.html</p><pre>&lt;kendo-grid<br>  [kendoGridBinding]=&quot;gridView()&quot;<br>  kendoGridSelectBy=&quot;id&quot;<br>  [(selectedKeys)]=&quot;mySelection&quot;<br>  [pageSize]=&quot;20&quot;<br>  [pageable]=&quot;true&quot;<br>  [sortable]=&quot;true&quot;<br>  [groupable]=&quot;true&quot;<br>  [reorderable]=&quot;true&quot;<br>  [resizable]=&quot;true&quot;<br>  [height]=&quot;500&quot;<br>  [navigable]=&quot;[&#39;table&#39;, &#39;pager&#39;]&quot;<br>  [skip]=&quot;dataBinding.skip&quot;<br>&gt;<br>  &lt;ng-template kendoGridToolbarTemplate&gt;<br>    &lt;kendo-textbox<br>      [style.width.px]=&quot;165&quot;<br>      placeholder=&quot;Search in all columns...&quot;<br>      (valueChange)=&quot;onFilter($event)&quot;<br>    &gt;&lt;/kendo-textbox&gt;<br><br>    &lt;kendo-grid-spacer&gt;&lt;/kendo-grid-spacer&gt;<br><br>    &lt;button<br>      kendoGridExcelCommand<br>      type=&quot;button&quot;<br>      [disabled]=&quot;isExportDisabled()&quot;<br>    &gt;<br>      Export to Excel<br>    &lt;/button&gt;<br><br>    &lt;button<br>      kendoGridPDFCommand<br>      [disabled]=&quot;isExportDisabled()&quot;<br>    &gt;<br>      Export to PDF<br>    &lt;/button&gt;<br>  &lt;/ng-template&gt;<br><br>  &lt;kendo-grid-checkbox-column<br>    [width]=&quot;45&quot;<br>    [headerClass]=&quot;{ &#39;text-center&#39;: true }&quot;<br>    [class]=&quot;{ &#39;text-center&#39;: true }&quot;<br>    [resizable]=&quot;false&quot;<br>    [columnMenu]=&quot;false&quot;<br>    [showSelectAll]=&quot;true&quot;<br>  &gt;&lt;/kendo-grid-checkbox-column&gt;<br><br>  &lt;kendo-grid-column-group title=&quot;Employee&quot; [columnMenu]=&quot;false&quot;&gt;<br>    &lt;kendo-grid-column field=&quot;name&quot; title=&quot;Name&quot;&gt;&lt;/kendo-grid-column&gt;<br>    &lt;kendo-grid-column field=&quot;department&quot; title=&quot;Department&quot;&gt;&lt;/kendo-grid-column&gt;<br>    &lt;kendo-grid-column field=&quot;age&quot; title=&quot;Age&quot; width=&quot;90&quot;&gt;&lt;/kendo-grid-column&gt;<br>  &lt;/kendo-grid-column-group&gt;<br>&lt;/kendo-grid&gt;</pre><h3>Better Enable/Disable Logic Using Signals</h3><p>Instead of juggling boolean flags inside Observables, I converted them to signals:</p><pre>isExportDisabled = signal(false);<br><br>&lt;button [disabled]=&quot;isExportDisabled()&quot;&gt;</pre><p>Simple, readable, reactive.</p><h3>5. Adopting Proper Signal Getter Syntax</h3><p>Angular signals read like functions:</p><pre>this.isLoading();          // getter<br>this.isLoading.set(true);  // setter<br><br>isLoading(); //in templates</pre><p>This makes state access explicit and prevents the silent bugs that often happen with mutable objects.</p><h3>What These Changes Added Up To</h3><p>By the end of the migration, the difference was night and day.</p><ul><li>Components were half the size</li><li>Manual state management disappeared</li><li>No subscription cleanup headaches</li><li>Everything felt more reactive and predictable</li><li>The app aligned with Angular’s future direction</li></ul><p>It wasn’t just a version upgrade — it was a major modernization.</p><h3>Final Thoughts</h3><p>Upgrading from Angular 11 to Angular 17 is more than updating dependencies. The real value comes from embracing the new patterns Angular now encourages: signals, functional DI, automatic cleanup, and cleaner state handling.</p><p>If you’re sitting on an older Angular project, don’t put it off. Every improvement you make reduces future maintenance cost, improves performance, and makes your codebase more enjoyable to work in.</p><p>And honestly? Coding in Angular 17 just feels better.</p><p><em>If you want the full migration checklist, specific examples like Kendo Grid filtering with signals, or a deeper breakdown of any of these techniques, Comment down below- I’d be happy to help.</em></p><p>Stay tuned ~ I will add more posts about this migration soon.~<br><em>Happy Coding !!<br>Cheers!!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ffddaaefdc1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is GitHub Copilot Worth It? (For Developers)]]></title>
            <link>https://medium.com/@manpreetkaur6311062/is-github-copilot-worth-it-for-developers-4eb96d0f83bf?source=rss-eaff65c3e053------2</link>
            <guid isPermaLink="false">https://medium.com/p/4eb96d0f83bf</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[github-copilot]]></category>
            <category><![CDATA[ai-tools]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[senior-software-developer]]></category>
            <dc:creator><![CDATA[ManpreetKaur]]></dc:creator>
            <pubDate>Fri, 03 Oct 2025 03:47:40 GMT</pubDate>
            <atom:updated>2025-10-03T03:47:40.383Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="AI is the now." src="https://cdn-images-1.medium.com/max/1024/1*EmNsKJggUIZ-ulYMIgd8sw.png" /></figure><h3>Yess!! It is !!</h3><p>In this article I want to talk about <strong>“How I Use GitHub Copilot as a Developer”</strong></p><p>After nearly a decade of building solutions with <strong>.NET Core, Angular, JavaScript, HTML5, and CSS3</strong>, I thought I had my development rhythm figured out. I know the frameworks, I know the patterns, and I’ve probably written the same boilerplate more times than I’d like to admit.</p><p>Then AI tools — specifically <strong>GitHub Copilot</strong> — came along. At first, I underestimated it. I assumed it was just an autocomplete gimmick. But after weaving it into my daily routine, I can say this confidently: <strong>Copilot has fundamentally changed how I code, how I learn, and even how I think about software development.</strong></p><p>Not because it replaces experience, but because it <strong>elevates it.</strong></p><h3>Let me explain How it’s helping me almost everyday</h3><h3>1. Cutting Through the Noise of Repetition</h3><p>A big part of being a full stack developer is producing predictable patterns — DTOs, services, controllers, Angular forms, HTTP interceptors. Copilot saves me from typing those out manually.</p><p>I don’t start from a blank file anymore. I just write a <strong>method signature or a short comment</strong> like:</p><pre>// API controller to fetch active users with pagination</pre><p>and Copilot lays down the foundation in seconds.</p><p>It’s like skipping the “grunt work” and jumping straight into the part that actually requires thought.</p><h3>2. Sharpening My Own Code Reviews</h3><p>When I’m scanning my own work, I’ll often leave myself a comment like:</p><pre>// Is there a simpler LINQ expression?</pre><p>Copilot then suggests an alternative. Sometimes I reject it, sometimes I refine it — but having that instant second opinion makes me a sharper reviewer. It’s like an ever-available peer who isn’t afraid to challenge your first draft.</p><h3>3. Speed-Running Documentation and Tests</h3><p>Two things most developers procrastinate on: documentation and testing.</p><p>With Copilot, I no longer dread either. A quick /// summary comment produces a decent starting docstring. A method signature turns into auto-generated <strong>xUnit</strong> or <strong>Jasmine</strong> test cases that I can refine.</p><p>It doesn’t absolve me from writing meaningful tests or clear docs — but it removes the mental barrier of starting.</p><h3>4. Staying Ahead with New Tech</h3><p>Even as a senior dev, I don’t know every library inside-out. When diving into <strong>.NET 8 minimal APIs</strong> or experimenting with <strong>RxJS in Angular</strong>, I rely on Copilot as an <em>in-context guide.</em></p><p>Instead of digging through 5 tabs of documentation, I describe what I need (getUserDataWithRetry), and Copilot shows me the right RxJS pipeline or async pattern. It’s like having Stack Overflow wired directly into my IDE—but context-aware.</p><h3>5. Debugging by Thinking Out Loud</h3><p>Here’s a subtle but powerful trick: <strong>I debug by writing comments.</strong></p><p>For example:</p><pre>// Possible null reference if user profile isn’t loaded</pre><p>Almost instantly, Copilot suggests the correct null check or safe navigation operator. It’s not perfect, but it often points me in the right direction faster than traditional trial-and-error debugging.</p><h3>6. Protecting My Flow State</h3><p>Before Copilot, I’d lose momentum switching between IDE, documentation, and Stack Overflow. Now I stay inside <strong>Visual Studio or VS Code</strong> for hours at a stretch.</p><p>Copilot doesn’t just save time — it preserves focus. And for senior developers, that uninterrupted flow is where the best architectural and design decisions happen.</p><h3>Lessons I’ve Learned Along the Way</h3><ul><li><strong>Clarity in, clarity out</strong> → The clearer your comments and naming, the better Copilot’s suggestions.</li><li><strong>Treat it like a junior dev</strong> → It’s fast, but it’s not always right. Guide it, refine it.</li><li><strong>Partial acceptance is underrated</strong> → Sometimes the first few lines are spot on; the rest needs trimming.</li><li><strong>Context drives quality</strong> → Keep relevant code in the same file so Copilot understands your intent.</li><li><strong>Combine with Copilot Chat</strong> → Natural language queries like <em>“optimize this query”</em> or <em>“generate unit tests”</em> push it to another level.</li></ul><h3>The Bottom Line</h3><p>GitHub Copilot hasn’t made me dependent — it’s made me more efficient, more focused, and, surprisingly, more creative.</p><p>Instead of sinking energy into scaffolding, I spend it on <strong>brainstorming ideas</strong>, <strong>architecture, scalability decisions, and mentoring junior developers, learning new tech.</strong> Copilot is the silent partner that frees me up to do the work that really matters.</p><p>After almost 10 years in this field, I can say this with confidence: developers who learn to work <em>with</em> AI, not against it, will simply outpace the rest.</p><p>And that’s exactly where I plan to stay.</p><p><em>Cheers folks!!</em></p><p><em>Happy Coding!!</em></p><p><em>~stay tuned for more~</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4eb96d0f83bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Chatty with SignalR in .NET Core]]></title>
            <link>https://medium.com/@manpreetkaur6311062/getting-chatty-with-signalr-in-net-core-210203dfeda7?source=rss-eaff65c3e053------2</link>
            <guid isPermaLink="false">https://medium.com/p/210203dfeda7</guid>
            <category><![CDATA[realtime-chat-app]]></category>
            <category><![CDATA[real-time-communication]]></category>
            <category><![CDATA[signalr]]></category>
            <category><![CDATA[net-core-6]]></category>
            <category><![CDATA[dot-net-core]]></category>
            <dc:creator><![CDATA[ManpreetKaur]]></dc:creator>
            <pubDate>Fri, 28 Feb 2025 05:00:36 GMT</pubDate>
            <atom:updated>2025-02-28T05:00:36.391Z</atom:updated>
            <content:encoded><![CDATA[<h3>Getting Chatty with SignalR in .NET Core</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lYjio4j0Hbel-cE38MJuQQ.jpeg" /></figure><h3>Building a Real-Time Chat Application with SignalR in .NET Core</h3><p>A few years ago, I implemented SignalR in a project to fetch real-time currency exchange rates. It was an exciting experience to see how easily SignalR can bring real-time functionality to web applications. Today, I’m revisiting it to show you how to create a simple real-time chat application using SignalR and ASP.NET Core. Whether you’re building a chat app or a live feed, SignalR is an excellent tool for delivering instant updates to users.</p><p>In this tutorial, we’ll walk through setting up a basic chat system where users can send and receive messages in real time. Let’s get started!<br>(.NET 6 SDK)</p><h3>Prerequisites</h3><p>Before you begin, ensure you have the following installed:</p><ul><li><a href="https://dotnet.microsoft.com/download">.NET SDK</a> (version 6 or later)</li><li>A text editor like <a href="https://code.visualstudio.com/">Visual Studio Code</a></li></ul><h3>Step 1: Create a New ASP.NET Core Project</h3><p>First, open your terminal (or command prompt) and create a new ASP.NET Core Web API project:</p><pre>dotnet new web -n SignalRApp<br>cd SignalRApp</pre><p>This creates a new ASP.NET Core application and navigates to the project directory.</p><h3>Step 2: Install SignalR Package</h3><p>Next, we need to install the SignalR package. SignalR is an open-source library that simplifies adding real-time web functionality to applications.</p><p>Run the following command to add the SignalR library to your project:</p><pre>dotnet add package Microsoft.AspNetCore.SignalR</pre><h3>Step 3: Create a SignalR Hub</h3><p>SignalR uses a “Hub” to manage real-time communication between clients and the server. Let’s create a new Hub class called ChatHub in a folder named Hubs.</p><p>Create a new file at Hubs/ChatHub.cs with the following code:</p><pre>using Microsoft.AspNetCore.SignalR;<br>using System.Threading.Tasks;<br><br>public class ChatHub : Hub<br>{<br>    public async Task SendMessage(string user, string message)<br>    {<br>        // Broadcast the message to all connected clients<br>        await Clients.All.SendAsync(&quot;ReceiveMessage&quot;, user, message);<br>    }<br>}</pre><p>This ChatHub class contains a method SendMessage that clients can call to send messages to all connected clients. The Clients.All.SendAsync method broadcasts the message to all connected clients in real time.</p><h3>Step 4: Configure SignalR in Program.cs</h3><p>Now, let’s set up SignalR in our application. Open the Program.cs file and modify it as follows:</p><pre>var builder = WebApplication.CreateBuilder(args);<br><br>// Configure CORS<br>builder.Services.AddCors(options =&gt;<br>{<br>    options.AddDefaultPolicy(policy =&gt;<br>    {<br>        policy.WithOrigins(&quot;http://localhost:5073&quot;) // Allow frontend origin<br>              .AllowAnyHeader()<br>              .AllowAnyMethod()<br>              .AllowCredentials();<br>    });<br>});<br><br><br>// Register SignalR service<br>builder.Services.AddSignalR();<br><br>var app = builder.Build();<br><br>app.UseDefaultFiles();<br>app.UseStaticFiles();<br><br>// Keep `UseCors()` BEFORE `UseRouting()`<br>app.UseCors();<br><br>app.UseRouting();<br><br>// Map SignalR Hub<br>app.MapHub&lt;ChatHub&gt;(&quot;/chathub&quot;);<br><br>app.Run();</pre><p>In this setup:</p><ul><li>We add <strong>CORS</strong> support to allow cross-origin requests during development.</li><li>We register SignalR with builder.Services.AddSignalR().</li><li>We map the SignalR hub to the /chathub endpoint using app.MapHub&lt;ChatHub&gt;(&quot;/chathub&quot;).</li></ul><h3>Step 5: Create a Frontend Client (HTML + JavaScript)</h3><p>SignalR works with any frontend technology. For simplicity, we’ll create a basic HTML page that connects to our SignalR server.</p><p>Create a file called wwwroot/index.html with the following content:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>  &lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot; /&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;<br>    &lt;title&gt;SignalR Chat&lt;/title&gt;<br>    &lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/microsoft-signalr/7.0.5/signalr.min.js&quot;&gt;&lt;/script&gt;<br>  &lt;/head&gt;<br>  &lt;body&gt;<br>    &lt;h2&gt;SignalR Chat&lt;/h2&gt;<br>    &lt;input id=&quot;userInput&quot; type=&quot;text&quot; placeholder=&quot;Enter your name&quot; /&gt;<br>    &lt;input id=&quot;messageInput&quot; type=&quot;text&quot; placeholder=&quot;Type a message...&quot; /&gt;<br>    &lt;button onclick=&quot;sendMessage()&quot;&gt;Send&lt;/button&gt;<br>    &lt;ul id=&quot;messagesList&quot;&gt;&lt;/ul&gt;<br><br>    &lt;script&gt;<br>      // Connect to the SignalR Hub<br>      const connection = new signalR.HubConnectionBuilder()<br>        .withUrl(&quot;http://localhost:5073/chathub&quot;, { withCredentials: true }) // Use backend port<br>        .build();<br><br>      connection<br>        .start()<br>        .then(() =&gt; {<br>          console.log(&quot;Connected to SignalR&quot;);<br>        })<br>        .catch((err) =&gt; console.error(err));<br><br>      // Receive messages from the server<br>      connection.on(&quot;ReceiveMessage&quot;, (user, message) =&gt; {<br>        const li = document.createElement(&quot;li&quot;);<br>        li.textContent = `${user}: ${message}`;<br>        document.getElementById(&quot;messagesList&quot;).appendChild(li);<br>      });<br><br>      // Send message to the server<br>      function sendMessage() {<br>        const user = document.getElementById(&quot;userInput&quot;).value;<br>        const message = document.getElementById(&quot;messageInput&quot;).value;<br>        connection<br>          .invoke(&quot;SendMessage&quot;, user, message)<br>          .catch((err) =&gt; console.error(err));<br>      }<br>    &lt;/script&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><p>This HTML page:</p><ul><li>Establishes a connection to the SignalR Hub at /chathub.</li><li>Displays a text input for the user’s name and message.</li><li>Sends the message to the server when the user clicks “Send”.</li><li>Displays incoming messages in real-time by listening to the ReceiveMessage event.</li></ul><h3>Step 6: Run the Application</h3><p>To run the .NET Core application, execute the following command:</p><pre>dotnet run</pre><p>The API will be available at <a href="http://localhost:5073/">http://localhost:5073</a><br>Or Check in your terminal output window and see what localhost port link you see and use that to check.</p><h3>Step 7: Open the Client</h3><p>To test the chat application, open the index.html file in a browser. You can open multiple browser tabs to simulate multiple users. When a message is sent from one tab, it will instantly appear in all other connected tabs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ekUG0n0OmCVS2e8VU-UaKA.png" /><figcaption>Chat Simultaneously in 2 different windows side by side</figcaption></figure><p>Repository Link : <a href="https://github.com/mkaur-rgb/SignalRApp">https://github.com/mkaur-rgb/SignalRApp</a></p><h3>Enhancements You Can Add:</h3><ul><li><strong>User Authentication:</strong> Add JWT-based authentication to secure the chat.</li><li><strong>Message Persistence:</strong> Store messages in a database like SQL Server or MongoDB so that users can see past messages when they join.</li><li><strong>Private Messaging:</strong> Allow users to send private messages to other users in the chat.</li><li><strong>Presence Tracking :</strong>Track when users join or leave the chat.</li><li><strong>Improve the UI Design: </strong>Add Styling or CSS to improve user experience.</li></ul><h3><em>Conclusion</em></h3><p><em>In this tutorial, we’ve learned how to build a simple real-time chat application using SignalR and ASP.NET Core. SignalR is a powerful library that makes it easy to build real-time, interactive web applications. Now you can extend this foundation to build more complex applications like live notifications, collaborative editing, and multiplayer games!</em></p><p><em>Happy Coding!!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=210203dfeda7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Motherhood Penalty: Trying to Re-Enter the Workforce]]></title>
            <link>https://medium.com/@manpreetkaur6311062/the-motherhood-penalty-trying-to-re-enter-the-workforce-eafe24481a82?source=rss-eaff65c3e053------2</link>
            <guid isPermaLink="false">https://medium.com/p/eafe24481a82</guid>
            <category><![CDATA[first-time-mom]]></category>
            <category><![CDATA[job-hunting]]></category>
            <category><![CDATA[returning-to-work]]></category>
            <category><![CDATA[motherhood]]></category>
            <category><![CDATA[job-search]]></category>
            <dc:creator><![CDATA[ManpreetKaur]]></dc:creator>
            <pubDate>Mon, 10 Feb 2025 18:13:09 GMT</pubDate>
            <atom:updated>2025-02-10T18:13:09.518Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CbpFz35pQ27PeZzIvlQhKw.jpeg" /><figcaption>Supermom in action</figcaption></figure><p>As a first-time mom trying to re-enter the workforce, I’m finding the current job market incredibly disheartening. It feels like an uphill battle, and I’m starting to feel helpless. I understand that the job market has become increasingly competitive, but the challenges I’m facing feel specifically tied to my time away to care for my child.</p><p>The difficulty starts with even getting an interview. Despite having 8 years of experience in full-stack development before my break, my resume seems to disappear into a black hole. I’ve applied for countless roles, tailoring my cover letters to highlight the transferable skills I gained during my time as a caregiver — things like project management, time management, and problem-solving, all honed while juggling the demands of motherhood. Yet, the silence is deafening. I suspect that my maternity leave, clearly visible on my resume, is the primary reason I’m not even being considered. It seems like the world is saying you can’t have both, or you can’t *do* both.</p><p>It’s frustrating because I’m eager to return to work. I’m confident in my abilities and eager to contribute professionally again. I bought a new MacBook to stay in touch, I started reading and writing on Medium, I started making basic personal projects in my tech stack, tried freelancing, and volunteer work. I practiced skills that I couldn’t pay attention to while working. I’ve even taken online courses on Udemy and Coursera to keep my skills sharp and stay up-to-date with industry trends. Becoming a first-time mom is a transformative experience, teaching a wealth of new qualities and personality skills. It’s like a crash course in personal development disguised as sleep deprivation and baby snuggles! You learn so many essential qualities like patience, communication, time management, resilience, stress management, negotiation, problem-solving, adaptability, empathy, selflessness, resourcefulness, prioritization, and leadership — all highly transferable to the workplace.</p><p>But it seems like potential employers are only seeing the gap in my employment history, not the valuable experience and skills I bring to the table. I tried reaching out to everyone in my network, but nothing worked. Everywhere I see a dead end.</p><p>I’m starting to feel like my decision to prioritize my child’s early years has effectively derailed my career. The feeling of being overlooked and dismissed, simply because I took time to be a mother, is incredibly demoralizing. All I want is a chance to prove myself, to show that I’m just as capable and dedicated as I was before my break. But without even an interview, that chance feels increasingly out of reach.</p><p><em>I don’t know how long it’s going to take, but I am not giving up. I am not a quitter. If you can, please share this post to help me reach a wider audience and hopefully secure an interview.</em></p><p><em>Thank you for your support.</em></p><p>LinkedIn : <a href="https://www.linkedin.com/in/manpreet-kaur-a48b20100/"><strong>https://www.linkedin.com/in/manpreet-kaur-a48b20100/</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eafe24481a82" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>