Angular πŸ‡ΊπŸ‡¦ - practical notes
1.63K subscribers
1.6K photos
1 file
532 links
Angular - practical notes

This group is for posting practical notes for Angular developers. Mostly all posts are for quick implementation https://t.me/angular_practical_notes (Commenting on posts only in ENG and UA langs here). Welcome!
Download Telegram
πŸ§ͺ Control Flow Migration Schematic

#angular #html #controlFlow

πŸ€” How to use it?
As with any other schematic, you have to run the generate command through the CLI and use the control-flow schematic (you need to be using 17.0.0-next.8 or 17.0.0-rc.0 for this command to run).

ng g @angular/core:control-flow


🚩 > Angular v17.0.0-next.8

βœ… Article link: https://blog.herodevs.com/new-in-angular-control-flow-migration-schematic-57979ebeaa71
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ§ͺ Angular β€” New Control Flow

#angular #controlFlow

🚩 > Angular v17.0.0-next.8

βœ… Article link: https://blog.stackademic.com/angular-new-control-flow-with-a-working-example-72cc0a860988

🎁 Code link: https://github.com/Madhust/angular-control-flows/
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ“„ Microtask Queue + RxJS + Angular: How it works

#angular #ngZone #microTask #macroTask

In the context of Angular, the framework doesn’t directly use the root zone. Instead, Angular creates its specialized zone by forking the root zone.
This forked zone, known as NgZone or sometimes referred to as the "inner zone," is augmented with Angular-specific behaviors. It's within this NgZone that Angular tracks changes and decides when to run its change detection.
The ability to fork zones and create this hierarchical structure is powerful. It allows for modular and layered tracking of asynchronous operations.
For instance, while the root zone might provide basic tracking, child zones (like NgZone) can introduce application-specific behaviors without affecting the broader tracking mechanisms.
In Angular’s case, the NgZone ensures that the framework can efficiently track changes and update the UI, building upon the foundational capabilities of the root zone.


βœ… Article link: https://itnext.io/microtask-queue-rxjs-angular-ac3d8612d3f6