An angular directive for flipping a card