World Congress 2022 Jun 15, 2022

Angular Magical directives

Valentine Awe

Still relying on external frameworks for your UI? Master Angular's magical structural directives to build flexible, highly reusable components without polluting your DOM.

Pause
Mute Enter Fullscreen
#1 about 4 min

Introduction to building reusable Angular components

An introduction to solving UI duplication by building reusable component libraries in Angular without relying on external dependencies.

#2 about 3 min

Understanding and utilizing the ng-template directive

How Angular uses ng-template under the hood for structural directives and how it enables complex conditional rendering logic.

#3 about 3 min

Grouping elements cleanly with the ng-container directive

Using ng-container to group elements without introducing redundant tags or invalid HTML block structures to the DOM tree.

#4 about 5 min

Projecting content with ng-content and multi-slot projection

Projecting HTML layout into reusable components and explicitly targeting destination slots using specific CSS selectors.

#5 about 4 min

Using ngTemplateOutlet to provide default projected content

How to pass template references to components to instantiate default UI blocks when custom projection data is omitted.

#6 about 2 min

Reusing exact templates across views with ngTemplateOutlet

Duplicating identical UI elements across a page without violating the DRY principle by dynamically injecting a single layout template.

#7 about 4 min

Supplying context bindings for highly dynamic layout components

Passing local context variables to ngTemplateOutlet to render complex dynamic layouts based on runtime template inputs.

#8 about 2 min

Styling content-projected elements globally using host-context

Addressing concerns around the deprecated ng-deep operator and applying localized styles cleanly using the host-context CSS rule.

#9 about 6 min

Evaluating template performance and managing child content bindings

Examining the performance impacts of runtime templates versus structural placeholder components and listening to projected changes using view hooks.

Matching moments

3:04 min

Manipulating user interfaces with Angular directives

Indu Chaube · LIVE

8:34 min

Exploring Angular component patterns and upcoming framework updates

Benedikt Starzengruber · LIVE

2:54 min

Fundamental architecture and modules in Angular applications

Indu Chaube · LIVE

4:07 min

Simplifying custom component development with Angular CDK

Muhammad Ahsan Ayaz · WWC 2021

3:46 min

The rise of modern component-based frameworks and modular architecture

Sasha Shynkevich · LIVE

1:13 min

Understanding the basics of Angular schematics

Stanimira Vlaeva · LIVE

Upcoming sessions on this topic

Open session

World Congress 2026 North America

Architecting AI in Angular: WebMCP, A2UI, and the Agent Experience

Ankita Sood

Sr. Principal Engineer @ Secureworks | Angular GDE

Ankita Sood
Open session

World Congress 2026 North America

Beyond Vibe Coding: An AI Builder’s Guide to Migrating 10k+ React Components

Shubham Chaurasia

Senior Software Engineer @ Meta

Shubham Chaurasia
Open session

World Congress 2026 North America

The Agentic Engineering Loop

Kevin Lin

Member of Technical Staff at OpenAI

Kevin Lin
Open session

World Congress 2026 North America

MicroAgents: The Microservices of the Agentic Era

Ashish Shubham

Runs the show bussiness at ThoughtSpot

Ashish Shubham
Open session

World Congress 2026 North America

Designing APIs That Survive AI Agents at Scale

Phani Pendurthi

Mastercard, Principal Software Engineer

Phani Pendurthi
Open session

World Congress 2026 North America

How to generate business value through performance optimizations

Nikolai Sidiropulo

Software Engineer at Meta

Nikolai Sidiropulo