Valentine Awe
Angular Magical directives
#1about 1 minute
Overview of Angular's core structural directives
An introduction to the four key directives for building clean and reusable components: ng-template, ng-container, ng-content, and ng-template-outlet.
#2about 3 minutes
How to use ng-template for conditional rendering
Learn how ng-template represents an Angular template without rendering to the DOM until explicitly called, which is useful for complex `ngIf/else` logic.
#3about 3 minutes
Using ng-container to avoid extra DOM elements
Use ng-container as a grouping element that doesn't create an extra node in the DOM, helping to write cleaner HTML and improve performance.
#4about 5 minutes
Creating reusable components with ng-content
Implement content projection using ng-content to pass content into a component, and use the `select` attribute for multi-slot projection.
#5about 8 minutes
Building highly configurable components with ng-template-outlet
Leverage ng-template-outlet to create highly dynamic components by providing default templates and passing contextual data into a template.
#6about 7 minutes
Q&A on styling, dynamic components, and performance
Audience questions are answered regarding styling projected content without `::ng-deep`, handling many template variations, and performance considerations.
Related jobs
Jobs that call for the skills explored in this talk.
MARKT-PILOT GmbH
Stuttgart, Germany
Remote
€75-90K
Senior
Java
TypeScript
+1
Hubert Burda Media
München, Germany
€80-95K
Intermediate
Senior
JavaScript
Node.js
+1
Douglas GmbH
Düsseldorf, Germany
Intermediate
Senior
TypeScript
React
Matching moments
02:33 MIN
Why you might not need JavaScript for everything
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
03:31 MIN
The value of progressive enhancement and semantic HTML
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
04:56 MIN
Recreating React components using AI and dev tools
WeAreDevelopers LIVE – AI, Freelancing, Keeping Up with Tech and More
09:00 MIN
Navigating the growing complexity of modern CSS
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
03:16 MIN
Improving the developer feedback loop with specialized tools
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
11:32 MIN
The industry's focus on frameworks over web fundamentals
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
06:09 MIN
Creating a modal with the native HTML dialog element
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
05:59 MIN
Building an accessible accordion with details and summary
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
Featured Partners
Related Videos
Stand alone components in Angular
Valentine Awe
Angular <> Angular CDK - Awesomeness Combined
Muhammad Ahsan Ayaz
Angular Features You Should be Using
Sani Yusuf
Angular tips/tricks you can use from tomorrow on
Benedikt Starzengruber
Angular Unleashed: Mastering Modern Web Development with Angular
Indu Chaube
Extending HTML with Web Components
Rowdy Rabouw
State of Angular
Jessica Janiuk
Building a framework-independent component library
Tobias Scholz
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.


Paradigma Digital
Municipality of Valencia, Spain
API
React
Svelte
Vue.js
WebPack
+3

Paradigma Digital
Barcelona, Spain
API
React
Svelte
Vue.js
WebPack
+3

Paradigma Digital
Lleida, Spain
API
React
Svelte
Vue.js
WebPack
+3

Paradigma Digital
Municipality of Alicante, Spain
API
React
Svelte
Vue.js
WebPack
+3

Paradigma Digital
A Coruña, Spain
API
React
Svelte
Vue.js
WebPack
+3

Paradigma Digital
Municipality of Granada, Spain
API
React
Svelte
Vue.js
WebPack
+3

Paradigma Digital
Municipality of Seville, Spain
API
React
Svelte
Vue.js
WebPack
+3

Paradigma Digital
Municipality of Madrid, Spain
API
React
Svelte
Vue.js
WebPack
+3