use one directive's attr in another