How Structural Directive Works | Directives | Angular 12+
Вставка
- Опубліковано 14 лют 2022
- In this lecture you will learn how a structural directive works behind the scenes and what is the significance of using an asterik (*) before a structural directive.
A structural directive uses a template behind the scenes when we add and asterik before it. So, let's learn what actually happens behind the scenes with a structural directive.
Very clear and informative video. Thanks a alot sir
Thank you so much for this easy explanation!
Wonderful video
Good to hear this inform and appreciate your work :)
Done
If angular creates an ngtemplate to wrap when it sees an asteriks before the ngif or ngfor directive , then can we use two ngifs in the same line one with asteriks and one without like *ngif structural directive and ngif attribute directive in the same line ? I am asking this because you just proved us angular handles the first and creates a wrapping for it so it got me curious