switch directive to an element, pass message as param