Prashantsaransingh·Dec 23, 2024Understanding ng-template , ng-content , NgTemplateOutlet & ViewContainerRef in AngularAngular provides developers with tools to create powerful, dynamic, and reusable templates. One such tool is the <ng-template> element…A response icon2A response icon2
Gondi·Sep 22, 2024“The Differences Between ng-content and ng-container in Angular"-(Angular No-17)In Angular, both ng-content and ng-container are structural directives, but they serve different purposes. Let’s break down their roles and…
Sinan Öztürk·Mar 6, 2024Essential Parts of Angular’s Templating System — ng-content, ng-container, ng-template…These directives are pretty important for creating reusable,dynamic and customizable components in Angular applications.
InLevel Up CodingbyRebai Ahmed·Apr 14, 2023Maximize your Angular code reusability using <NgTemplateOutlet>Introduction 📕:
Tehseen - Angular Blog·Mar 30, 2023You will probably love to see the use of ng-container, ng-template, and NgTemplateOutlet in angular.ng-container is structural directives in Angular. It does not make any extra elements in the DOM. It is mostly used when we are supposed to…
kelly woo·Oct 10, 2021[angular] template projection on angular(ng-content vs ng-container)If only we can keep the template under the birth component, but there are many cases to project the template from one to another.
InpineopticonebyAlexander Inkin·Apr 15, 2021A simple trick you need for dynamic ContentChildrenDeveloping OnPush components that operate with content children might be tricky. But this simple trick will help you get it right!A response icon2A response icon2
InAngular TrainingbyAlain Chautard·Dec 13, 2019How to pass a custom template to an Angular component?Presentation components are often introduced as being reusable components. The truth us, reusability is indeed possible for simple…A response icon2A response icon2
Ali Farmani·Sep 28, 2018Angular 2 — Guild Roster Component — flatMap and </ng-container> to the rescue!So recently I’ve been working on building a website for our guild’s World of Warcraft website, more specifically the guild roster…
Łukasz Gawryś·Oct 23, 2017*ngIf ohne zusätzliches wrapper-ElementGerade bei komplexen Templates kommt es häufiger vor, dass man dort gewisse Logik einbauen und einige Elemente in der Abhängigkeit von…