Angular 6 Tutorial 30: Custom Directives

preview_player
Показать описание
This tutorial shows you what directives are in Angular and how to work with some custom directives.

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

Angular tutorial: "Damn you Angular!" haha

jroig
Автор

You don't to reassign the el to this.element, once you create a property using private in constructor you can access it like this.el.

DhirendraKumarS
Автор

Bahut bada teer maar diya directive me color change karke yahi to hum sab angular developer kar rahe hai jeevan me 😁😁
1 esha example nahi mila jisme kisi ne proper real time me use hone waala custom directive bataya ho

TheUltimateTrainJourney
Автор

Came for the custom directives, found the secret of coloring a piece of text...

dewinchy
Автор

"Wha' the Hell is this?!" haha - good one.
Nice tutorial, btw

maximchanturiay
Автор

What would elementRef return if directive is applied to multiple tags in html?

shivambansal
Автор

It would be good if the video could cover heavier components like autocomplete with event captures and http calls.

dsouzaeldric
Автор

Good stuff. Here some notes for next time make all of the fonts and text you use bigger at least size 18 or even 20. Because it is extremely hard to read small text. Besides that though, keep up the great work!

CarloNyte
Автор

Thank you so much!! You cleared my concept!

i-s-h-a-n
Автор

give full link of your videos for Angular 6

anshulgupta
Автор

what are scenario where we can use custom directives in projects??

gkmishra
Автор

how do you set innerHtml to refElement and bind angular events to them

ergyan
Автор

const element = (el.nativeElement as HTMLElement);

So that you don't waste your time looking for the element properties in the console.

abdelhakimlahrach
Автор

style.color is for setting text color.

Spdroo
Автор

But it is effecting all the p tags in my html

adayinmylife