Skip to content

Routing guides don't show any examples of importing user-defined components #2245

Open

Description

@elwayman02

I looked here:

https://guides.emberjs.com/release/routing/defining-your-routes/

and here:

https://guides.emberjs.com/release/routing/rendering-a-template/

for examples of importing a use-defined component into a route template. This would be a pretty common, basic action for developers to take, but the only examples I saw for route templates was repeat demos of importing the ember-page-title helper, as well as LinkTo. While the syntax for user-defined components is pretty straightforward, it would be nice if the guides clearly connected these two concepts. The guides don't really explain that route templates are essentially components with enhanced state injected, or that most of the concepts of components transfer to route templates as well. More simply, though, it would be nice to just have a simple example of rendering a user-defined component in a route template. This is something the Tutorial demonstrates, but it's never referenced again, so devs who go to the Routing guides looking for information won't find anything useful regarding this syntax.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions