Angular directive to rpeat the contents of an element