Impetus Technologies interview question

How to extend angular JS directive?