Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Confusing formatting of animation events #10742

Closed
@fredsa

Description

@fredsa

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 the ngIf container leave - happens just before the ngIf 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 the ngIf container
leave - happens just before the ngIf 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 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions