<?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 Biola (Oyerinde) Akinsanmi on Medium]]></title>
        <description><![CDATA[Stories by Biola (Oyerinde) Akinsanmi on Medium]]></description>
        <link>https://medium.com/@biolaakinsanmi?source=rss-e46b4c3610f7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*m2LdVJ-1O_WdHvPyLTrYiw.png</url>
            <title>Stories by Biola (Oyerinde) Akinsanmi on Medium</title>
            <link>https://medium.com/@biolaakinsanmi?source=rss-e46b4c3610f7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 18:50:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@biolaakinsanmi/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[NativeScript & Angular: Building Truly Native Mobile Apps]]></title>
            <link>https://biolaakinsanmi.medium.com/nativescript-angular-building-truly-native-mobile-apps-62d16ebcd16a?source=rss-e46b4c3610f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/62d16ebcd16a</guid>
            <dc:creator><![CDATA[Biola (Oyerinde) Akinsanmi]]></dc:creator>
            <pubDate>Sun, 28 Dec 2025 18:48:47 GMT</pubDate>
            <atom:updated>2025-12-28T18:48:47.679Z</atom:updated>
            <content:encoded><![CDATA[<p>When developers talk about “cross-platform mobile apps,” the conversation often revolves around trade-offs, performance versus productivity, native feel versus shared code. NativeScript takes a different approach.</p><p>Instead of wrapping web views, NativeScript allows you to build <strong>truly native iOS and Android applications</strong> using <strong>Angular</strong>, while still accessing native APIs directly. In this post, I’ll walk through what makes NativeScript unique and when it’s the right choice for production systems.</p><figure><img alt="Angular and NativeScript" src="https://cdn-images-1.medium.com/max/1024/1*Yba7BNK75fv_zXtIt4EmTQ.png" /></figure><h3>What NativeScript Actually Solves</h3><p>Most hybrid frameworks rely on a browser layer. NativeScript does not.</p><p>With NativeScript:</p><ul><li>UI components map directly to <strong>native iOS and Android widgets</strong></li><li>There is <strong>no WebView</strong></li><li>JavaScript/TypeScript code communicates directly with native APIs</li></ul><p>This results in:</p><ul><li>Better performance</li><li>Native look and feel</li><li>Deeper platform integration</li></ul><p>For teams that want shared logic <strong>without sacrificing native behavior</strong>, this is a huge win.</p><h3>NativeScript + Angular Architecture</h3><p>If you already use Angular, NativeScript feels very familiar.</p><ul><li>Angular handles <strong>state, services, DI, and routing</strong></li><li>NativeScript handles <strong>rendering and platform APIs</strong></li><li>Business logic is often <strong>shared between web and mobile</strong></li></ul><pre>@Component({<br>  selector: &#39;app-home&#39;,<br>  template: `<br>    &lt;StackLayout&gt;<br>      &lt;Label text=&quot;Welcome to NativeScript + Angular&quot;&gt;&lt;/Label&gt;<br>      &lt;Button text=&quot;Tap Me&quot; (tap)=&quot;onTap()&quot;&gt;&lt;/Button&gt;<br>    &lt;/StackLayout&gt;<br>  `<br>})<br>export class HomeComponent {<br>  onTap() {<br>    console.log(&#39;Button tapped&#39;);<br>  }<br>}</pre><p>The structure mirrors Angular web apps, reducing the learning curve significantly.</p><h3>Accessing Native APIs Directly</h3><p>One of NativeScript’s biggest strengths is <strong>direct access to native APIs</strong>, without writing Swift or Kotlin.</p><p>Example (accessing device information):</p><pre>import { Device } from &#39;@nativescript/core&#39;;<br><br>console.log(Device.model);<br>console.log(Device.osVersion);</pre><p>Need camera access, GPS, file system, or Bluetooth? NativeScript exposes them cleanly, while still allowing custom native plugins when needed.</p><h3>Performance: Native vs Hybrid</h3><p>Because NativeScript renders native UI components:</p><ul><li>Animations are smooth</li><li>Scrolling feels natural</li><li>Memory usage is predictable</li></ul><p>In performance-sensitive applications, fintech, logistics, utilities, or field tools, this can make a noticeable difference in user experience.</p><h3>When NativeScript Makes Sense</h3><p>NativeScript is an excellent choice when:</p><ul><li>You need <strong>deep native functionality</strong></li><li>Performance is critical</li><li>You already have <strong>Angular expertise</strong></li><li>You want to share logic across platforms</li><li>You’re building long-lived enterprise mobile apps</li></ul><p>It may not be ideal for:</p><ul><li>Simple content-driven apps</li><li>Teams without TypeScript/Angular experience</li></ul><h3>Case Insight</h3><p>On a mobile project I worked on, NativeScript allowed the team to reuse Angular services and business logic while delivering a fully native experience on both iOS and Android. This significantly reduced development time while maintaining the performance and reliability expected from native apps.</p><p>The ability to debug, extend, and scale the app using familiar Angular patterns was a major productivity boost.</p><h3>Final Thoughts</h3><p>NativeScript challenges the idea that cross-platform means compromise. By combining <strong>Angular’s structure</strong> with <strong>true native rendering</strong>, it enables teams to build powerful mobile applications without splitting efforts across multiple codebases.</p><p>For engineers who want <strong>full control, performance, and code reuse</strong>, NativeScript remains a compelling and often underrated option.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62d16ebcd16a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Designing Scalable APIs with NestJS: Lessons from Real-World Systems]]></title>
            <link>https://biolaakinsanmi.medium.com/designing-scalable-apis-with-nestjs-lessons-from-real-world-systems-ca539241b369?source=rss-e46b4c3610f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca539241b369</guid>
            <dc:creator><![CDATA[Biola (Oyerinde) Akinsanmi]]></dc:creator>
            <pubDate>Fri, 19 Dec 2025 13:36:24 GMT</pubDate>
            <atom:updated>2025-12-19T13:36:24.540Z</atom:updated>
            <content:encoded><![CDATA[<p>As applications grow, APIs tend to become the backbone of the entire system. What starts as a simple REST service can quickly evolve into a complex platform serving multiple clients, teams, and business use cases. This is where NestJS truly shines.</p><p>NestJS provides a structured, opinionated framework for building scalable, maintainable, and testable APIs on top of Node.js. In this post, I’ll share why NestJS works so well in real-world systems and how its architectural patterns help teams scale confidently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*otR_PzMH0lkAGRvnlCBxUA.jpeg" /></figure><h3>Why NestJS Works for Enterprise APIs</h3><p>NestJS combines the flexibility of Node.js with a strong architectural foundation inspired by Angular and traditional backend frameworks.</p><p>Key reasons teams adopt NestJS:</p><ul><li>Strong modular architecture</li><li>Built-in dependency injection</li><li>First-class TypeScript support</li><li>Easy testing and extensibility</li><li>Clear separation of concerns</li></ul><p>For large teams and long-lived systems, these features reduce technical debt and improve developer velocity.</p><h3>Modular Architecture Done Right</h3><p>At the core of NestJS is its module system. Each feature lives inside its own module, making the system easier to reason about and extend.</p><pre>@Module({<br>  controllers: [UsersController],<br>  providers: [UsersService],<br>  exports: [UsersService],<br>})<br>export class UsersModule {}typ</pre><p>This encourages:</p><ul><li>Feature isolation</li><li>Clean boundaries between domains</li><li>Easier refactoring and onboarding</li></ul><p>As systems grow, this structure becomes critical for maintaining clarity across teams.</p><h3>Dependency Injection as a First-Class Citizen</h3><p>NestJS treats dependency injection as a core concept, not an afterthought.</p><pre>@Injectable()<br>export class UsersService {<br>  constructor(private readonly repo: UsersRepository) {}<br>}</pre><p>Benefits:</p><ul><li>Loose coupling between components</li><li>Easier mocking and testing</li><li>Cleaner abstractions</li></ul><p>In large codebases, DI dramatically improves maintainability and long-term scalability.</p><h3>Validation, Guards &amp; Interceptors</h3><p>NestJS provides powerful tools for handling <strong>cross-cutting concerns</strong>.</p><h4>Validation</h4><pre>@Body(new ValidationPipe()) createUser(dto: CreateUserDto)type</pre><h4>Guards (Authorization)</h4><pre>@UseGuards(AuthGuard)</pre><h4>Interceptors (Logging, Transformation, Caching)</h4><pre>@UseInterceptors(LoggingInterceptor)</pre><p>These patterns help enforce <strong>security, consistency, and performance</strong> without cluttering business logic.</p><h3>Performance &amp; Scalability Tips</h3><p>Some practical lessons from production systems:</p><ul><li>Use <strong>async/await</strong> consistently to avoid blocking I/O</li><li>Introduce <strong>caching layers</strong> (Redis) for read-heavy endpoints</li><li>Offload heavy tasks to <strong>queues</strong> (BullMQ)</li><li>Keep controllers thin; push logic into services</li><li>Avoid large monolithic modules; split early</li></ul><p>NestJS makes it easy to introduce these optimizations incrementally.</p><h3>Case Insight</h3><p>On one backend platform I worked on, migrating from a loosely structured Node.js API to <strong>NestJS</strong> significantly improved maintainability. The team was able to introduce stricter validation, consistent error handling, and modular ownership, resulting in faster feature delivery and fewer production bugs.</p><p>The biggest win wasn’t just performance; it was <strong>clarity at scale</strong>.</p><h3>Final Thoughts</h3><p>NestJS is more than a Node.js framework. It is an architectural toolkit for building APIs that can grow with your business. Its emphasis on structure, testability, and scalability makes it an excellent choice for <strong>enterprise and mission-critical systems</strong>.</p><p>If you’re building APIs expected to last and evolve, NestJS is absolutely worth the investment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca539241b369" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Advanced State Management in Angular with NgRx & Signals]]></title>
            <link>https://biolaakinsanmi.medium.com/advanced-state-management-in-angular-with-ngrx-signals-f4c75c4b0fd0?source=rss-e46b4c3610f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4c75c4b0fd0</guid>
            <dc:creator><![CDATA[Biola (Oyerinde) Akinsanmi]]></dc:creator>
            <pubDate>Mon, 20 Oct 2025 21:44:06 GMT</pubDate>
            <atom:updated>2025-10-20T21:44:06.645Z</atom:updated>
            <content:encoded><![CDATA[<p>State management is at the heart of every modern web application. As apps grow, so does the complexity of handling shared data, UI state, and side effects. Angular offers several approaches; from built-in reactive patterns to powerful libraries like NgRx and the emerging Signals API.</p><p>In this post, I’ll walk through how to manage state efficiently, combining the predictability of NgRx with the reactivity of Signals for more elegant, performant applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h0uEViCYVYqpZkwuzt9-Rw.png" /></figure><h3><strong>Understanding the Challenge</strong></h3><p>When your app grows, multiple components start needing access to the same data. For example:<br> • A user’s authentication info across the app.<br> • Cart or checkout data shared between pages.<br> • Global app settings or themes.</p><p>Without structured state management, you risk data drift, redundant API calls, and hard-to-track bugs.</p><h3>NgRx: Predictable State Through Actions and Reducers</h3><p>NgRx is based on the Redux pattern; a unidirectional data flow with three building blocks:<br> • Actions — events describing what happened.<br> • Reducers — pure functions that decide how the state changes.<br> • Selectors — ways to read data from the state tree.</p><p>Example:</p><pre>// actions/user.actions.ts<br>import { createAction, props } from &#39;@ngrx/store&#39;;<br>export const loadUser = createAction(&#39;[User] Load User&#39;, props&lt;{ id: number }&gt;());<br><br>// reducers/user.reducer.ts<br>import { createReducer, on } from &#39;@ngrx/store&#39;;<br>import { loadUser } from &#39;../actions/user.actions&#39;;<br><br>export const initialState = { user: null };<br><br>export const userReducer = createReducer(<br>  initialState,<br>  on(loadUser, (state, { id }) =&gt; ({ ...state, loading: true }))<br>);</pre><p>NgRx’s structure enforces consistency, which becomes critical in large teams and enterprise systems.</p><h3>Signals: The Next Frontier of Reactivity</h3><p>Angular’s new Signals API (introduced in v16) brings a fresh way to manage component-level state with fine-grained reactivity.</p><pre>import { signal, computed } from &#39;@angular/core&#39;;<br><br>const count = signal(0);<br>const doubleCount = computed(() =&gt; count() * 2);<br><br>count.set(5);<br>console.log(doubleCount()); // 10</pre><p>Unlike RxJS Observables, Signals automatically track dependencies and update only where needed eliminating unnecessary change detection cycles.</p><p>They are perfect for local state:<br> • Component UI flags (loading, open/close states).<br> • Input transformations or derived data.<br> • Cases where NgRx would be too heavy-handed.</p><h3>Combining NgRx and Signals</h3><p>For large apps, the hybrid approach works beautifully:<br> • Use NgRx for global state — persisted data, backend synchronization.<br> • Use Signals for local reactive UI state: user selections, filters, modal visibility, etc.</p><p>Example:</p><pre>@Component({<br>  selector: &#39;app-user-list&#39;,<br>  template: `<br>    &lt;input type=&quot;text&quot; (input)=&quot;filter.set($event.target.value)&quot; /&gt;<br>    &lt;ul&gt;<br>      &lt;li *ngFor=&quot;let user of filteredUsers()&quot;&gt;{{ user.name }}&lt;/li&gt;<br>    &lt;/ul&gt;<br>  `<br>})<br>export class UserListComponent {<br>  filter = signal(&#39;&#39;);<br>  users = signal([{ name: &#39;John&#39; }, { name: &#39;Jane&#39; }]);<br><br>  filteredUsers = computed(() =&gt;<br>    this.users().filter(u =&gt; u.name.toLowerCase().includes(this.filter().toLowerCase()))<br>  );<br>}</pre><p>Combine that with global NgRx data and you get <strong>optimal scalability and responsiveness</strong>.</p><h3>Case Insight</h3><p>In one enterprise Angular project I worked on, migrating portions of UI state from NgRx to Signals reduced unnecessary component updates by nearly 60%. Developers found it easier to reason about local state while keeping global logic intact through NgRx.</p><p>The result? Simpler debugging, faster UIs, and happier developers.</p><h3>Final Thoughts</h3><p>State management in Angular doesn’t have to be all-or-nothing.<br>By strategically blending NgRx for global consistency and Signals for reactive precision, you get the best of both worlds; scalable architecture and buttery-smooth performance.</p><p>Angular is evolving, and as engineers, staying adaptable is our biggest strength.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4c75c4b0fd0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimizing Angular Apps for Performance: Change Detection, Lazy Loading & Bundle Analysis]]></title>
            <link>https://biolaakinsanmi.medium.com/optimizing-angular-apps-for-performance-change-detection-lazy-loading-bundle-analysis-c1b13e80a3b7?source=rss-e46b4c3610f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1b13e80a3b7</guid>
            <dc:creator><![CDATA[Biola (Oyerinde) Akinsanmi]]></dc:creator>
            <pubDate>Mon, 22 Sep 2025 17:58:39 GMT</pubDate>
            <atom:updated>2025-09-22T17:58:39.036Z</atom:updated>
            <content:encoded><![CDATA[<p>Performance is not just about fast apps — it’s about <strong>user trust</strong>. In Angular applications, a few key practices can mean the difference between an app that feels snappy and one that lags under real-world conditions. In this post, I’ll share practical ways to optimize Angular performance, drawing from lessons I’ve applied on large-scale projects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*37Dbr4vzbwLoSJ3rbbqsXA.jpeg" /></figure><h3>1. Mastering Change Detection</h3><p>Angular’s <strong>change detection mechanism</strong> is powerful, but if misused, it can re-render components unnecessarily.</p><p>i. <strong>Use</strong> <strong><em>ChangeDetectionStrategy.OnPush</em></strong>:</p><pre>import { ChangeDetectionStrategy, Component } from &#39;@angular/core&#39;;<br><br>@Component({<br>  selector: &#39;app-user-card&#39;,<br>  templateUrl: &#39;./user-card.component.html&#39;,<br>  changeDetection: ChangeDetectionStrategy.OnPush<br>})<br>export class UserCardComponent {<br>  @Input() user: any;<br>}</pre><p>By telling Angular to re-check only when <strong>inputs change</strong>, you cut down on wasted cycles.</p><p>ii. <strong>Combine with</strong> <strong><em>immutable data patterns</em></strong>:</p><ul><li>Prefer <strong>map</strong>, <strong>filter</strong>, and <strong>spread</strong> operators to update state instead of mutating objects.</li><li>This ensures Angular correctly detects changes.</li></ul><h3>2. Lazy Loading Modules</h3><p>Lazy loading ensures your users only download what they need, when they need it.</p><pre>const routes: Routes = [<br>  {<br>    path: &#39;admin&#39;,<br>    loadChildren: () =&gt; import(&#39;./admin/admin.module&#39;).then(m =&gt; m.AdminModule)<br>  }<br>];</pre><p>Instead of shipping the entire app upfront, Angular fetches the <strong>Admin module</strong> only when the user navigates there.</p><p>💡<em> Pro tip: Combine lazy loading with </em><strong><em>preloading strategies</em></strong><em> (PreloadAllModules) for critical but secondary routes.</em></p><h3>3. Bundle Analysis with Source Map Explorer</h3><p>Even optimized Angular apps can suffer from <strong>bundle bloat</strong>.</p><p>Run:</p><pre>ng build --prod --source-map<br>npx source-map-explorer dist/my-app/main.*.js</pre><p>This gives you a visual breakdown of what’s inside your JS bundle.</p><p>Common optimizations:</p><ul><li>Replace heavy libraries (e.g., moment.js → date-fns).</li><li>Tree-shake unused operators (rxjs/operators).</li><li>Split large third-party dependencies into lazy-loaded modules.</li></ul><h3>4. Extra Quick Wins</h3><ul><li>*<em>Track by in ngFor</em>: Prevents Angular from re-rendering lists unnecessarily.</li></ul><pre>&lt;li *ngFor=&quot;let user of users; trackBy: trackById&quot;&gt;{{ user.name }}&lt;/li&gt;</pre><ul><li><strong>Avoid memory leaks</strong>: Always unsubscribe from Observables (or use async pipe).</li><li>Enable<strong> production mode </strong>when ready for production:</li></ul><pre>ng build --prod</pre><h3>Case Insight</h3><p>On one SaaS project I worked on, simply introducing <strong>OnPush change detection</strong> and <strong>lazy loading</strong> cut the <strong>initial load time by 40%</strong> and reduced memory usage in long sessions. These optimizations translated directly into better customer retention — proof that <strong>performance is business-critical</strong>.</p><h3>Final Thoughts</h3><p>Angular comes with many performance features out of the box, but it’s up to us as engineers to leverage them. By combining <strong>change detection strategies, lazy loading, and bundle analysis</strong>, you can keep your apps fast, scalable, and user-friendly.</p><p>Performance is not an afterthought — it’s a feature.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1b13e80a3b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TypeScript Utility Types You Should Be Using]]></title>
            <link>https://biolaakinsanmi.medium.com/typescript-utility-types-you-should-be-using-47ed22443d86?source=rss-e46b4c3610f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/47ed22443d86</guid>
            <dc:creator><![CDATA[Biola (Oyerinde) Akinsanmi]]></dc:creator>
            <pubDate>Wed, 17 Sep 2025 14:41:23 GMT</pubDate>
            <atom:updated>2025-09-17T14:41:23.809Z</atom:updated>
            <content:encoded><![CDATA[<p>TypeScript is powerful not just because of its type safety, but also because it provides us with tools to <strong>write expressive, reusable, and maintainable code</strong>. Among these tools are <strong>utility types</strong> — predefined helpers that make it easier to transform and manipulate existing types without having to repeat ourselves.</p><p>In this post, we’ll explore <strong>the most useful TypeScript utility types</strong>, how they work, and when to apply them. I’ll also share a case study from one of my projects where utility types saved us significant development time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J2Vls8fLqADa1DhtIVwJZw.jpeg" /></figure><h3>Why Utility Types Matter</h3><p>Utility types help developers:</p><ul><li>Avoid boilerplate when reshaping types.</li><li>Write more predictable code.</li><li>Improve readability and maintainability.</li><li>Catch potential bugs at compile time.</li></ul><p>They’re not just “shortcuts” — they’re <strong>powerful abstractions</strong> that can improve both individual productivity and team efficiency.</p><h3>Commonly Used Utility Types</h3><h4>1. Partial&lt;Type&gt;</h4><p>Makes all properties of a type optional.</p><pre>interface User {<br>  id: number;<br>  name: string;<br>  email: string;<br>}<br><br>const updateUser = (id: number, updates: Partial&lt;User&gt;) =&gt; {<br>  // updates can include any subset of User fields<br>};</pre><p><strong>Use case:</strong> Perfect for “update” operations where only some fields change.</p><h4>2. Required&lt;Type&gt;</h4><p>Opposite of Partial — ensures all properties are required.</p><pre>interface Settings {<br>  theme?: string;<br>  language?: string;<br>}<br><br>const saveSettings = (config: Required&lt;Settings&gt;) =&gt; {<br>  // must include both theme and language<br>};</pre><h4>3. Readonly&lt;Type&gt;</h4><p>Prevents properties from being reassigned.</p><pre>interface Config {<br>  apiUrl: string;<br>}<br><br>const config: Readonly&lt;Config&gt; = {<br>  apiUrl: &quot;https://api.example.com&quot;<br>};<br><br>config.apiUrl = &quot;https://new-api.com&quot;; // ❌ Error</pre><p><strong>Use case:</strong> Great for constants or configuration objects that shouldn’t be changed.</p><h4>4. Pick&lt;Type, Keys&gt;</h4><p>Selects a subset of properties.</p><pre>interface User {<br>  id: number;<br>  name: string;<br>  email: string;<br>}<br><br>type UserPreview = Pick&lt;User, &quot;id&quot; | &quot;name&quot;&gt;;</pre><p><strong>Use case:</strong> Efficient when creating “lightweight” representations for UI components.</p><h4>5. Omit&lt;Type, Keys&gt;</h4><p>Removes specific properties from a type.</p><pre>type UserWithoutEmail = Omit&lt;User, &quot;email&quot;&gt;;</pre><p><strong>Use case:</strong> When exposing data to external APIs while hiding sensitive fields.</p><h4>6. Record&lt;Keys, Type&gt;</h4><p>Creates an object type with specific keys and values.</p><pre>type Roles = &quot;admin&quot; | &quot;editor&quot; | &quot;viewer&quot;;<br><br>const permissions: Record&lt;Roles, boolean&gt; = {<br>  admin: true,<br>  editor: true,<br>  viewer: false,<br>};</pre><p><strong>Use case:</strong> Enforcing strict mappings.</p><h4>7. Exclude&lt;Type, ExcludedUnion&gt;</h4><p>Removes types from a union.</p><pre>type Status = &quot;draft&quot; | &quot;published&quot; | &quot;archived&quot;;<br>type VisibleStatus = Exclude&lt;Status, &quot;archived&quot;&gt;;</pre><h4>8. Extract&lt;Type, Union&gt;</h4><p>Keeps only the matching union members.</p><pre>type Status = &quot;draft&quot; | &quot;published&quot; | &quot;archived&quot;;<br>type EditableStatus = Extract&lt;Status, &quot;draft&quot; | &quot;published&quot;&gt;;</pre><h3>Takeaway</h3><p>Safer, cleaner, and more maintainable code with less effort.</p><p>If you haven’t already, start weaving these into your TypeScript projects. Small improvements in type safety today can save countless debugging hours tomorrow.</p><p>💡 <em>Pro tip: Combine multiple utility types for even more expressive models (e.g., Readonly&lt;Partial&lt;T&gt;&gt;). The more you practice, the more natural it becomes.</em></p><p>What’s your favorite TypeScript utility type? Have you used them in large projects? Share your thoughts — I’d love to hear how you apply them in real-world codebases.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47ed22443d86" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Harnessing Angular Reactive Forms Like a Pro]]></title>
            <link>https://biolaakinsanmi.medium.com/harnessing-angular-reactive-forms-like-a-pro-945f053ca5e6?source=rss-e46b4c3610f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/945f053ca5e6</guid>
            <dc:creator><![CDATA[Biola (Oyerinde) Akinsanmi]]></dc:creator>
            <pubDate>Mon, 08 Sep 2025 09:26:16 GMT</pubDate>
            <atom:updated>2025-09-08T09:26:16.784Z</atom:updated>
            <content:encoded><![CDATA[<p>Angular’s reactive forms are one of its most powerful features — but too many developers only scratch the surface. Let’s explore patterns and best practices that can help you handle complex scenarios without drowning in boilerplate code.</p><figure><img alt="Angular Reactive Forms" src="https://cdn-images-1.medium.com/max/1024/1*zhrHVnrEmDT4cnlC0lEg5w.jpeg" /></figure><h3>Why Reactive Forms?</h3><p>Template-driven forms are fine for simple use cases, but once you’re dealing with dynamic fields, conditional validation, or custom controls, <strong>reactive forms give you:</strong></p><ul><li>Full programmatic control.</li><li>Better scalability.</li><li>Easier unit testing.</li><li>Cleaner separation of logic and template.</li></ul><h3>Structuring Complex Forms</h3><p>Instead of lumping everything into one <strong><em>FormGroup</em></strong>, break it down into logical chunks:</p><pre>this.userForm = this.fb.group({<br>  profile: this.fb.group({<br>    firstName: [&#39;&#39;, Validators.required],<br>    lastName: [&#39;&#39;, Validators.required],<br>  }),<br>  contact: this.fb.group({<br>    email: [&#39;&#39;, [Validators.required, Validators.email]],<br>    phone: [&#39;&#39;],<br>  }),<br>  preferences: this.fb.group({<br>    newsletter: [true],<br>    theme: [&#39;light&#39;],<br>  })<br>});</pre><p>This makes your form <strong>modular and maintainable</strong>. Each section can evolve independently.</p><h3>Conditional Validation</h3><p>Reactive forms shine when business rules change on the fly. For example, making the phone field required only if the user selects SMS notifications:</p><pre>this.userForm.get(&#39;contact.sms&#39;)?.valueChanges.subscribe((enabled) =&gt; {<br>  const phoneControl = this.userForm.get(&#39;contact.phone&#39;);<br>  if (enabled) {<br>    phoneControl?.setValidators([Validators.required]);<br>  } else {<br>    phoneControl?.clearValidators();<br>  }<br>  phoneControl?.updateValueAndValidity();<br>});</pre><p>No messy template logic — everything is <strong>handled in code</strong>.</p><h3>Custom Form Controls</h3><p>Sometimes built-in inputs aren’t enough. With <strong><em>ControlValueAccessor</em></strong>, you can wrap a complex UI widget (like a date range picker or custom dropdown) and still integrate it seamlessly into Angular’s forms API.</p><pre>// Pseudo-code<br>@Component({<br>  selector: &#39;app-date-range&#39;,<br>  providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() =&gt; DateRangeComponent), multi: true }]<br>})<br>export class DateRangeComponent implements ControlValueAccessor {<br>  // implement writeValue, registerOnChange, registerOnTouched<br>}</pre><p>This lets you <strong>extend Angular’s form vocabulary</strong> with your own controls.</p><h3>Testing Reactive Forms</h3><p>Reactive forms are straightforward to test since they’re just objects:</p><pre>it(&#39;should mark email as invalid if empty&#39;, () =&gt; {<br>  const control = new FormControl(&#39;&#39;, Validators.email);<br>  expect(control.valid).toBeFalsy();<br>});</pre><p>A clean API means cleaner unit tests — and fewer bugs slipping into production.</p><h3>Final Thoughts</h3><p>Reactive forms are more than just input handling — they’re a <strong>framework for building dynamic, testable, and scalable form logic</strong>. Once you master patterns like grouping, conditional validation, and custom controls, you’ll find that even the most complex forms become manageable.</p><p>💡 Pro tip: Pair reactive forms with libraries like <strong>Formly</strong> when your forms need to be <strong>driven entirely by metadata</strong> —<em> you’ll save hours of boilerplate!</em>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=945f053ca5e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Advanced Angular Type Safety with TypeScript: Going Beyond the Basics]]></title>
            <link>https://biolaakinsanmi.medium.com/advanced-angular-type-safety-with-typescript-going-beyond-the-basics-89541c8214ab?source=rss-e46b4c3610f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/89541c8214ab</guid>
            <dc:creator><![CDATA[Biola (Oyerinde) Akinsanmi]]></dc:creator>
            <pubDate>Thu, 04 Sep 2025 15:52:08 GMT</pubDate>
            <atom:updated>2025-09-04T15:52:08.930Z</atom:updated>
            <content:encoded><![CDATA[<p>When most developers think about TypeScript in Angular, they think about typing <em>models, components</em>, and <em>services</em>. But Angular provides much deeper opportunities to enforce type safety. Leveraging TypeScript beyond the basics can help you write more maintainable, predictable, and future-proof Angular applications.</p><p>In this post, I’ll walk you through some advanced strategies for tightening up type safety in Angular projects.</p><figure><img alt="Angular Type Safety with TypeScript" src="https://cdn-images-1.medium.com/max/1024/1*oldtMP-J7_jrNMZAq9kn4w.jpeg" /></figure><h3>1. Strongly Typed Reactive Forms</h3><p>Angular’s <strong><em>FormGroup</em></strong> and <strong><em>FormControl</em></strong> are untyped by default. This can lead to runtime errors when accessing values or controls. Instead, you can leverage <strong>generics</strong> to create typed forms.</p><pre>import { FormControl, FormGroup } from &#39;@angular/forms&#39;;<br><br>interface LoginForm {<br>  email: string;<br>  password: string;<br>}<br><br>const loginForm = new FormGroup&lt;LoginForm&gt;({<br>  email: new FormControl(&#39;&#39;, { nonNullable: true }),<br>  password: new FormControl(&#39;&#39;, { nonNullable: true }),<br>});<br><br>// Type-safe access:<br>const emailValue: string = loginForm.controls.email.value;</pre><p>This eliminates ambiguity — if you mistype a control name, TypeScript will complain immediately.</p><h3>2. Typed Template Contexts</h3><p>Angular templates support <strong><em>ngIf</em></strong> and <strong><em>ngFor</em></strong> context variables; however, without strong typing, you may misuse them. You can enforce type safety by annotating structural directive contexts.</p><pre>&lt;ng-container *ngIf=&quot;user as currentUser&quot;&gt;<br>  &lt;!-- currentUser is strongly typed here --&gt;<br>  &lt;p&gt;{{ currentUser.name }}&lt;/p&gt;<br>&lt;/ng-container&gt;</pre><p>Pair this with strict template checking (“<strong>strictTemplates”: true</strong> in <strong><em>tsconfig.json</em></strong>) to surface type errors directly in your HTML.</p><h3>3. Using readonly with State Management</h3><p>When working with state (NgRx, services, or signals), marking models as <strong><em>readonly</em></strong> prevents accidental mutations.</p><pre>interface UserProfile {<br>  readonly id: string;<br>  readonly name: string;<br>  readonly email: string;<br>}<br><br>function updateEmail(profile: UserProfile, email: string): UserProfile {<br>  return { ...profile, email }; // safe and immutable<br>}</pre><p>Immutability not only enforces safer code, but also improves predictability in Angular’s change detection cycle.</p><h3>4. Enforcing API Contracts with as const</h3><p>If you’re defining constant data structures (like routes, permissions, or menu items), as <strong><em>const</em></strong> helps freeze their types.</p><pre>const routes = [&#39;home&#39;, &#39;about&#39;, &#39;contact&#39;] as const;<br><br>type Route = typeof routes[number]; <br>// &#39;home&#39; | &#39;about&#39; | &#39;contact&#39;<br><br>function navigateTo(route: Route) {<br>  console.log(`Navigating to ${route}`);<br>}<br><br>navigateTo(&#39;home&#39;);    // ✅<br>navigateTo(&#39;profile&#39;); // ❌ Type error</pre><p>This prevents invalid values from creeping into your navigation logic.</p><h3>5. Leveraging Utility Types for Angular Services</h3><p>Angular services often deal with API responses. You can use utility types (<strong><em>Partial</em></strong>, <strong><em>Pick</em></strong>, <strong><em>Omit</em></strong>, etc.) to handle variations without duplicating interfaces.</p><pre>interface User {<br>  id: number;<br>  name: string;<br>  email: string;<br>  role: string;<br>}<br><br>type PublicUser = Omit&lt;User, &#39;email&#39;&gt;;<br><br>function sanitizeUser(user: User): PublicUser {<br>  const { email, ...publicData } = user;<br>  return publicData;<br>}</pre><p>This way, your service contracts remain <strong>DRY</strong> and strictly typed.</p><h3>Final Thoughts</h3><p>TypeScript is more than just <em>“types for JavaScript”</em> in Angular; it’s a <strong>first-class tool for architectural safety</strong>. By applying advanced type techniques like <strong><em>generics</em></strong> in forms, strict templates, immutability, and utility types, you can catch entire categories of bugs before they ever hit runtime.</p><p>Hiring managers and engineering peers value developers who go beyond the basics. Advanced type safety not only improves code quality but also demonstrates a <strong><em>craftsman-like attention to long-term maintainability</em></strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89541c8214ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TypeScript Generics in Angular: Unlocking Flexibility and Type Safety]]></title>
            <link>https://biolaakinsanmi.medium.com/typescript-generics-in-angular-unlocking-flexibility-and-type-safety-c650a4c5535c?source=rss-e46b4c3610f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/c650a4c5535c</guid>
            <dc:creator><![CDATA[Biola (Oyerinde) Akinsanmi]]></dc:creator>
            <pubDate>Mon, 01 Sep 2025 11:19:35 GMT</pubDate>
            <atom:updated>2025-09-01T11:19:35.608Z</atom:updated>
            <content:encoded><![CDATA[<p>When building Angular applications, developers often face the trade-off between <strong>flexibility</strong> and <strong>type safety</strong>. TypeScript’s <em>Generics</em> solve this dilemma beautifully, giving you reusable, strongly typed components, services, and utilities.</p><p>In this post, we’ll break down <strong>why and how to use generics in Angular</strong>, with practical code examples.</p><figure><img alt="Generics in Angular" src="https://cdn-images-1.medium.com/max/1024/1*Hdg66TWBUlfoYRJVgTl75w.jpeg" /></figure><h3>Why Generics Matter</h3><p>Generics let you write code that can handle many types without sacrificing type safety.</p><ul><li><strong>Without generics:</strong> you might use any, which weakens type safety.</li><li><strong>With generics:</strong> you define a placeholder type (&lt;T&gt;) that adapts while preserving strict type checks.</li></ul><h3>Example 1: A Generic Data Service</h3><p>Imagine you’re building a reusable API service. Instead of duplicating methods for every entity, use a generic type parameter:</p><pre>@Injectable({ providedIn: &#39;root&#39; })<br>export class ApiService&lt;T&gt; {<br>  constructor(private http: HttpClient) {}<br><br>  getAll(url: string): Observable&lt;T[]&gt; {<br>    return this.http.get&lt;T[]&gt;(url);<br>  }<br><br>  getById(url: string, id: number): Observable&lt;T&gt; {<br>    return this.http.get&lt;T&gt;(`${url}/${id}`);<br>  }<br>}</pre><p>Usage:</p><pre>interface User {<br>  id: number;<br>  name: string;<br>}<br><br>interface Product {<br>  id: number;<br>  title: string;<br>}<br><br>const userService = new ApiService&lt;User&gt;(httpClient);<br>const productService = new ApiService&lt;Product&gt;(httpClient);<br><br>userService.getAll(&#39;/api/users&#39;);     // returns Observable&lt;User[]&gt;<br>productService.getById(&#39;/api/products&#39;, 1); // returns Observable&lt;Product&gt;</pre><p>You see! One service, multiple types, full type safety.</p><h3>Example 2: Generic Angular Components</h3><p>Generics can also improve component reusability:</p><pre>@Component({<br>  selector: &#39;app-list&#39;,<br>  template: `<br>    &lt;ul&gt;<br>      &lt;li *ngFor=&quot;let item of items&quot;&gt;{{ render(item) }}&lt;/li&gt;<br>    &lt;/ul&gt;<br>  `<br>})<br>export class ListComponent&lt;T&gt; {<br>  @Input() items: T[] = [];<br>  @Input() render!: (item: T) =&gt; string;<br>}</pre><p>Usage:</p><pre>&lt;app-list<br>  [items]=&quot;users&quot;<br>  [render]=&quot;user =&gt; user.name&quot;&gt;<br>&lt;/app-list&gt;<br><br>&lt;app-list<br>  [items]=&quot;products&quot;<br>  [render]=&quot;product =&gt; product.title&quot;&gt;<br>&lt;/app-list&gt;</pre><p>This keeps your UI lean and avoids boilerplate.</p><h3>Pro Tip: Combine Generics with RxJS</h3><p>When fetching typed data streams, generics help enforce correct typing for Observables, reducing runtime bugs.</p><pre>getAll&lt;T&gt;(url: string): Observable&lt;T[]&gt; {<br>  return this.http.get&lt;T[]&gt;(url).pipe(<br>    catchError(() =&gt; of([] as T[]))<br>  );<br>}</pre><h3>Final Thoughts</h3><p>Generics in Angular aren’t just a TypeScript “bonus” — they’re a <strong>superpower</strong>.</p><ul><li>Keep your code <strong>DRY</strong> (Don’t Repeat Yourself).</li><li>Improve <strong>type safety</strong>.</li><li>Make your services, components, and utilities <strong>more reusable</strong>.</li></ul><p>By embracing generics, you elevate your Angular codebase from just working to <strong>working smart</strong>.</p><p><em>Do you use generics heavily in your Angular projects, or do you still fall back on any sometimes? I’d love to hear your take!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c650a4c5535c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Angular Animations Made Simple: Motion That Matters]]></title>
            <link>https://biolaakinsanmi.medium.com/angular-animations-made-simple-motion-that-matters-ab0e8330da46?source=rss-e46b4c3610f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab0e8330da46</guid>
            <dc:creator><![CDATA[Biola (Oyerinde) Akinsanmi]]></dc:creator>
            <pubDate>Mon, 01 Sep 2025 11:03:18 GMT</pubDate>
            <atom:updated>2025-09-01T11:03:18.069Z</atom:updated>
            <content:encoded><![CDATA[<p>When done right, animations in Angular are more than eye candy. They guide attention, show state changes, and make your app feel alive. But when done wrong, they slow things down and frustrate users.</p><p>In this post, let’s walk through how to create <strong>meaningful, performant animations</strong> in Angular using the built-in <strong><em>@angular/animations</em></strong> package.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*itZFsryE3d7LXGueNX_kug.jpeg" /></figure><h3>Why Animations Matter in UX</h3><ul><li>They help <strong>orient users</strong> by showing how elements enter, leave, or change state.</li><li>They provide <strong>feedback</strong> (e.g., a button pulse on click).</li><li>They reinforce <strong>brand personality</strong> when subtle and consistent.</li></ul><p>Think of them as the <strong><em>“body language”</em></strong> of your UI.</p><h3>Setting Up Animations in Angular</h3><p>First, import the animations module:</p><pre>import { BrowserAnimationsModule } from &#39;@angular/platform-browser/animations&#39;;<br><br>@NgModule({<br>  imports: [BrowserAnimationsModule],<br>})<br>export class AppModule {}</pre><p>Then, import what you need from @angular/animations:</p><pre>import { trigger, state, style, transition, animate } from &#39;@angular/animations&#39;;</pre><h3>A Simple Fade In/Out Example</h3><pre>@Component({<br>  selector: &#39;app-fade-box&#39;,<br>  template: `<br>    &lt;div [@fadeInOut]=&quot;isVisible ? &#39;visible&#39; : &#39;hidden&#39;&quot;&gt;<br>      Animated Box<br>    &lt;/div&gt;<br>    &lt;button (click)=&quot;toggle()&quot;&gt;Toggle&lt;/button&gt;<br>  `,<br>  animations: [<br>    trigger(&#39;fadeInOut&#39;, [<br>      state(&#39;visible&#39;, style({ opacity: 1 })),<br>      state(&#39;hidden&#39;, style({ opacity: 0 })),<br>      transition(&#39;visible &lt;=&gt; hidden&#39;, [animate(&#39;300ms ease-in-out&#39;)]),<br>    ]),<br>  ],<br>})<br>export class FadeBoxComponent {<br>  isVisible = true;<br>  toggle() {<br>    this.isVisible = !this.isVisible;<br>  }<br>}</pre><p>Here:</p><ul><li><strong><em>“trigger”</em></strong> names the animation.</li><li><strong><em>“state”</em></strong> defines end styles.</li><li><strong><em>“transition”</em></strong> defines how to animate between states.</li></ul><h3>Best Practices for Angular Animations</h3><ol><li><strong>Keep it snappy</strong> — 200–400ms is the sweet spot.</li><li><strong>Use easing</strong> (ease-in, ease-out, or custom cubic-beziers).</li><li><strong>Avoid overload</strong> — too many animations = distracting.</li><li><strong>Leverage Angular’s :enter and :leave</strong> for clean list transitions.</li><li><strong>Measure performance</strong> on lower-end devices.</li></ol><h3>Going Further</h3><ul><li>Combine animations with Angular <strong>route transitions</strong>.</li><li>Animate <strong>lists with staggered effects</strong>.</li><li>Sync animations with <strong>RxJS streams</strong> (e.g., loading spinners).</li></ul><h3>Wrap-Up</h3><p>Animations in Angular don’t have to be intimidating. With the @angular/animations API, you can craft <strong>micro-interactions that feel natural</strong> while keeping your UI smooth.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab0e8330da46" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[angular and ng-bootstrapng-bootstrap Power Moves: Getting More from Angular’s Bootstrap Integration]]></title>
            <link>https://biolaakinsanmi.medium.com/angular-and-ng-bootstrapng-bootstrap-power-moves-getting-more-from-angulars-bootstrap-integration-eb3361448b50?source=rss-e46b4c3610f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb3361448b50</guid>
            <dc:creator><![CDATA[Biola (Oyerinde) Akinsanmi]]></dc:creator>
            <pubDate>Mon, 18 Aug 2025 16:03:54 GMT</pubDate>
            <atom:updated>2025-08-18T16:03:54.252Z</atom:updated>
            <content:encoded><![CDATA[<p>When we think of UI frameworks in Angular, <strong>ng-bootstrap</strong> often gets overlooked in favor of heavier or flashier options. But ng-bootstrap has one huge advantage: it’s a <strong>pure Angular implementation</strong> of Bootstrap, meaning no jQuery, no awkward dependencies, and components that feel like first-class Angular citizens.</p><p>Let’s explore some power moves that can help you get more out of ng-bootstrap in production apps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ml7yxD5eUjUI0Va5XloGFw.jpeg" /></figure><h3>1. Template-Driven Modals with Context</h3><p>Instead of bloating a component with modal logic, you can pass <strong>context</strong> directly into a modal component:</p><pre>// host.component.ts<br>...<br>openDetails(user: User) {<br>  const modalRef = this.modalService.open(UserDetailsModalComponent, { size: &#39;lg&#39; });<br>  modalRef.componentInstance.user = user;<br>}<br>...</pre><p>then:</p><pre>// user-details-modal.component.ts<br>...<br>@Input() user!: User;<br>...</pre><p>This keeps things clean, testable, and reusable.</p><h3>2. Smarter Tooltips with Triggers</h3><p>ng-bootstrap allows <strong>fine-grained trigger control</strong>. For example, tooltips that only open on click and close on blur:</p><pre>&lt;button <br>  ngbTooltip=&quot;Click for info&quot; <br>  triggers=&quot;click:blur&quot;&gt;<br>  Info<br>&lt;/button&gt;</pre><p>This prevents unwanted hover clutter while making tooltips intentional.</p><h3>3. Datepicker: Custom Adapters</h3><p>If you’ve struggled with the <strong><em>datepicker</em></strong>, you know it defaults to its own <strong><em>NgbDateStruct</em></strong>. For real-world apps, adapt it to something consistent, like JavaScript Date or even <strong><em>dayjs</em></strong>.</p><pre>@Injectable()<br>export class CustomDateAdapter extends NgbDateAdapter&lt;Date&gt; {<br>  fromModel(date: Date | null): NgbDateStruct | null {<br>    return date<br>      ? { year: date.getFullYear(), month: date.getMonth() + 1, day: date.getDate() }<br>      : null;<br>  }<br>  toModel(date: NgbDateStruct | null): Date | null {<br>    return date<br>      ? new Date(date.year, date.month - 1, date.day)<br>      : null;<br>  }<br>}</pre><p>Register this adapter and suddenly your forms play much nicer with standard dates.</p><h3>4. Pagination That Plays Well with APIs</h3><p>The ngb-pagination component becomes powerful when tied to APIs. Combine it with RxJS for seamless data loading:</p><pre>&lt;ngb-pagination<br>  [collectionSize]=&quot;totalItems&quot;<br>  [(page)]=&quot;page&quot;<br>  [pageSize]=&quot;pageSize&quot;<br>  (pageChange)=&quot;loadPage($event)&quot;&gt;<br>&lt;/ngb-pagination&gt;</pre><p>then:</p><pre>...<br>loadPage(page: number) {<br>  this.api.getItems(page, this.pageSize).subscribe(data =&gt; {<br>    this.items = data.items;<br>    this.totalItems = data.total;<br>  });<br>}<br>...</pre><h3>5. Performance with OnPush</h3><p>Many ng-bootstrap components (like dropdowns and accordions) are lightweight but can cause unnecessary checks in big lists.</p><p>Wrap them with ChangeDetectionStrategy.OnPush to squeeze out extra performance.</p><h3>Final Thoughts</h3><p><strong><em>ng-bootstrap</em></strong> shines when you <strong>lean into Angular’s strengths</strong> instead of fighting against external JS dependencies.</p><p>From context-driven modals to custom adapters, it’s a reliable toolkit that helps you build sleek, Bootstrap-powered UIs without sacrificing Angular best practices.</p><p>Next time you reach for a UI library, remember: sometimes <strong>power comes from simplicity</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb3361448b50" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>