Directive Composition API
#angular #directives
π© > Angular 15
β Link: https://netbasal.com/making-dry-conditional-structural-directives-using-angular-directive-composition-api-bc346672445d
#angular #directives
π© > Angular 15
β Link: https://netbasal.com/making-dry-conditional-structural-directives-using-angular-directive-composition-api-bc346672445d
hostDirectives + InjectionToken
#angular #directives
π© > Angular 15
β Link: https://medium.com/@redin.gaetan/angular-15-hostdirectives-injectiontoken-da81fb5add3f
#angular #directives
π© > Angular 15
β Link: https://medium.com/@redin.gaetan/angular-15-hostdirectives-injectiontoken-da81fb5add3f
π1
β οΈType Checking Directive for ng-template
#angular #directives #ngTemplate
β Link: https://medium.com/@thomas.laforge/ngtemplateoutlet-type-checking-5d2dcb07a2c6
#angular #directives #ngTemplate
β Link: https://medium.com/@thomas.laforge/ngtemplateoutlet-type-checking-5d2dcb07a2c6
β οΈ NgFor with "else" Directive
#angular #directives #ngTemplate
π© > Angular 15
β Link: https://medium.com/@thomas.laforge/ngfor-enhancement-716b44656a6c
#angular #directives #ngTemplate
π© > Angular 15
β Link: https://medium.com/@thomas.laforge/ngfor-enhancement-716b44656a6c
π₯2
β οΈType Checking Directive for ng-template
#angular #directives #ngTemplate
β Link: https://medium.com/@thomas.laforge/ngtemplateoutlet-typed-checking-part-2-274baa06f83d
#angular #directives #ngTemplate
β Link: https://medium.com/@thomas.laforge/ngtemplateoutlet-typed-checking-part-2-274baa06f83d
β€1π1
#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
#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