Crowell & Moring interview question

How would you go about making a directive in Angular?