Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 1.17 KB

File metadata and controls

21 lines (17 loc) · 1.17 KB

Module 05 - Custom Directives

Projects:

fun with directives All you can do with custom directives

Introcution to Element Directives

  • We talked about what is a directive and how it works internaly
  • We talked about ElementRef and how to pass it to the directive and use it to change the properties of the host
  • We talked about the Renderer and why it is needed
  • We talked about how to use host property to bind the host properties to the directive signals
  • We talked also about binding host events to directive methods
  • We talked about how to pass inputs to the directives
  • We saw how to define events as output of directives
  • We talked about how to use the shortcut syntax for inputs that have the same name as the directive
  • We talked about the selector property and the fact that we can use any CSS selector to select the directive
  • We saw how to use exportAs to expose the directive the the using template so it can bind to its properties