Directive for create custom events