...

/

Introduction to Structural Directives

Introduction to Structural Directives

Let’s learn the fundamentals of structural directives.

In this chapter, we’ll focus on structural directives. The main difference between structural and attribute directives is that structural directives change the actual DOM structure, while attribute directives just change the appearance of existing DOM elements.

Structural directives define the DOM structure by simply adding or removing elements in the DOM. This is very important to understand because structural directives ...