append data to directive