Dynamic list custom directive