Confusing formatting of animation events #10742
Description
See https://docs.angularjs.org/api/ng/directive/ngIf#animations
The source contains the following text:
* @animations
* enter - happens just after the `ngIf` contents change and a new DOM element is created and injected into the `ngIf` container
* leave - happens just before the `ngIf` contents are removed from the DOM
However, enter
and leave
are rendered all strung together (ignoring new lines):
enter - happens just after the
ngIf
contents change and a new DOM element is created and injected into thengIf
container leave - happens just before thengIf
contents are removed from the DOM
Instead I'd expect enter
and leave
events to be shown on two separate lines:
enter - happens just after the
ngIf
contents change and a new DOM element is created and injected into thengIf
container
leave - happens just before thengIf
contents are removed from the DOM
or better yet, use back ticks around the event names (enter
and leave
) for clarity:
enter
- happens just after thengIf
contents change and a new DOM element is created and injected into thengIf
container
leave
- happens just before thengIf
contents are removed from the DOM