Structural directives

Structural directives manipulate the DOM by adding or removing specific DOM elements. Just as we have syntax we can use to signal to Angular that we have an attribute directive to which it needs pay attention to, with the brackets symbol, we have the equivalent for structural directives.

The syntax we use to signal to Angular that we have a structural directive it needs to pay attention to is the asterisk (*). Structural directives are prefixed with an asterisk, which signals to Angular that it may need to add or remove elements from the DOM. As I enumerated at the beginning of the chapter, the asterisk is another one of the symbols we can use in our template syntax.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.68.18