Custom Directive Issue (Documentation Related)

Could you give an example of this?