Skip to content

Formatting problem in a code snippet #34942

@pasha-bolokhov

Description

@pasha-bolokhov

📚 Docs or angular.io bug report

Description

The code snippet right at
https://angular.io/guide/route-animations#querying-the-view-containers
has problems with formatting (the topmost query() should be aligned).

May confuse the reader as to what is nested into what...

However — this snippet is the continuation of the code from
https://angular.io/guide/route-animations#styling-the-host-and-child-components
and notice that the transition('HomePage <=> AboutPage'... function call is torn between the two snippets, which makes it even less consistent and readable

May be more readable to reproduce the whole piece in the bottom snippet, that piece is long anyway. Or, title it as src/app/animations.ts (continued) at least

🔬 Minimal Reproduction

What's the affected URL?**

https://angular.io/guide/route-animations#querying-the-view-containers

Reproduction Steps**

Expected vs Actual Behavior**

📷Screenshot

🔥 Exception or Error





🌍 Your Environment

Browser info

Anything else relevant?

Metadata

Metadata

Assignees

No one assigned

    Labels

    freq1: lowstate: communitySomeone from the Angular community is working on this issue or submitted this PRtype: bug/fix

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions