fixed angular directive to use new animate option