Angular directive for an animated table