pass attrs to other directives