allow directive to be used as an element