Dynamic attributes directive