Poke around some other directives and see how we did it. For example uiJq, uiSelect2, uiDate, etc. It's fairly simple.