Crownstack interview question

How can you create custom directives?