feat($animate): allow directives to cancel animation events

Making it more consistent with the way that we code ternary statements.