Angular directive to repeat the contents of an element