#52 Property Binding in Directives | Creating & Using Custom Directive | A Complete Angular Course

preview_player
Показать описание
In this lecture we will learn about custom property binding for directives in Angular. Just like how we can bind the custom property of a component to a typescript expression. In the same way, we can also bind a property of a directive. Let's learn how we can do that with an example.

Рекомендации по теме
Комментарии
Автор

you are the best teacher ever have in tube. Thank you Sir

rajendrasyam
Автор

Wow 🔥🔥... Such a superb tutorial.. I really liked the way you explain all the cases.. Thank you so much sir 😊

sona
Автор

Thank you so much sir.
I really like the way you explain things 😊

El_Bald
Автор

Just wanted to share that up until this lecture ngClass hasn't been discussed. You mentioned about it around 6:30 in this lecture.

fullstackprojects
Автор

why do we need to bind directive like you explain in last using object? we can simple use STYLE : "BACKGROUNDCOLOR:RED; COLOR:WHITE;" We can use as many as style property....why do we need to go through lengthy process?

bhavintank
Автор

How to pass an input as type number from html to the directive?

czgqvpp
Автор

@procademy Why to do property binding in directive using @input when we can use @hostbinding to set the background color and text color of that span?