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
⚠️ NgFor with "else" Directive

#angular #directives #ngTemplate

🚩 > Angular 15

βœ… Link: https://medium.com/@thomas.laforge/ngfor-enhancement-716b44656a6c
πŸ”₯2
πŸ’™ Using Document API for Dynamic Component Creation

#angular #cdk #directives #dynamic

Use Case
This method can be used when you need to manipulate the DOM directly, often in scenarios where you are working with non-Angular libraries or need to integrate with existing DOM elements that are not part of Angular’s template system.

Pros
β€” Direct control over the DOM.
β€” Can be useful for integrating with non-Angular libraries or existing scripts that manipulate the DOM directly.

Cons
β€” Bypasses Angular’s change detection and lifecycle hooks.
β€” Can lead to issues with Angular’s dependency injection and component lifecycle management.
β€” Harder to maintain and debug.

Performance Impact
Potentially high impact due to bypassing Angular’s optimized change detection. Direct DOM manipulation can also lead to performance issues if not handled properly.


βœ… Article link
Please open Telegram to view this post
VIEW IN TELEGRAM
β€οΈπŸ’› β™ŒοΈ Advanced Angular Techniques

#angular #directives #dynamic #customElements #compiler #ngTemplateContextGuard

βœ… Article link
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM