Pergunta de entrevista da empresa Cognizant

Q. How can you create a custom directive? What is structure direvtive?