controller and directive are dispatched from each other