directive on attribute, with linking function