directive to an attribute instead of class