Angular 2 (Angular 4) - Structural Directives

Publicado em: 19 Dezembro 2016
no canal de: Lyrad Digital
1,382
17

Angular 2 (Angular 4) - Structural Directives

This video was meant to be about dynamic forms, however I changed it last minute as I thought that learning the built in Structural Directives first would be important before I start build a dynamic form.

There are 3 built in Structural Directives in Angular 2.

*ngIf
*ngFor
ngSwitch

Along with the explanation of what these 3 can do for your HTML template files, I explain what the asterisks means for ngIf and ngFor and how behind the scenes the Angular 2 framework is using a template element tag to render the content inside of it.

We show that components inside of any of the directives specified above get destroyed an re-initialised, every time it is toggle to be hidden. This is something a lot of developers make mistakes on. I show you how you can hide components without destroying it by using simple attribute binding.

There is no github repo for this video. It's pretty simple so just follow along.

You can follow me on twitter at:   / dduckmanton82  
You can also follow my business account at:   / lyraddigital  
You can also follow my business account on Facebook at:   / lyraddigital  

I publish an article every now and then on LinkedIn as well. So connect with me on LinkedIn at:   / daryl-duckmanton-4478a14a  

Watch all my other videos in this series:-

Part 1 - Introduction and the CLI:    • Angular 2 (Angular 4) - Introduction and t...  
Part 2 - Angular Module Basics:    • Angular 2 (Angular 4) - Angular Module Basics  
Part 3 - Multiple Angular Modules:    • Angular 2 (Angular 4)  - Multiple Angular ...  
Part 4 - Shared Angular Modules:    • Angular 2 (Angular 4)  - Shared Angular Mo...  
Part 5 - Eagerly and Lazily Loading Modules:    • Angular 2 (Angular 4)  - Eagerly and Lazil...  
Part 6 - Basic App Component and Presentation:    • Angular 2 (Angular 4)  - Basic App Compone...  
Part 7 - App Component bindings:    • Angular 2 (Angular 4) - Component bindings  
Part 8 - Attribute binding and the main navigation:    • Angular 2 (Angular 4) - Attribute binding  
Part 9 - Basic Form and Dual Binding:    • Angular 2 (Angular 4)  - Two Way Binding  
Part 10 - Registration Form Part 1:    • Angular 2 (Angular 4)  - Creating Forms  
Part 11 - Registration Form Part 2:    • Angular 2 (Angular 4)  - Dynamic Form Data  
Part 12 - Registration Form Part 3:    • Angular 2 (Angular 4) - Form Validation  
Part 13 - Registration Form Part 4:    • Angular 2 (Angular 4) - Form Validation Me...  
Part 14- Registration Form Part 5:    • Angular 2 (Angular 4) - Reactive Forms  
Part 16 - Dynamic Forms:    • Angular Dynamic Forms (Angular 7) previous...  
Part 17 - Lifecycle Hooks Part 1:    • Angular 2 (Angular 4) - Lifecycle Hooks - ...  
Part 18 - Lifecycle Hooks Part 2:    • Angular 2 (Angular 4) - Lifecycle Hooks - ...  


Nesta página do site você pode assistir ao vídeo on-line Angular 2 (Angular 4) - Structural Directives duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Lyrad Digital 19 Dezembro 2016, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,382 vezes e gostou 17 espectadores. Boa visualização!