What is Exported Directive Context in angular?

54 Views Asked by At

I'm new to angular, while learning angular from it's offical docs I didn't get what is a directive context and a exported directive context.

Can anyone please help me out what is it and how it works... Thank you in advance.

1

There are 1 best solutions below

0
On

The official docs shows good what a directive is and how you can using it. Here is a Stackblitz example how a directive works.

And here is the guideline.

With a directive you have access to its element. Examples are available on the official docs (see link), too.

enter image description here

Greetings, Flo