Angular directive for eased iteration