Add attributes to directive for selection.