Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 768 Bytes

no-outlet-outside-routes.md

File metadata and controls

18 lines (11 loc) · 768 Bytes

no-outlet-outside-routes

✅ The extends: 'recommended' property in a configuration file enables this rule.

The {{outlet}} helper is used to specify locations into which routes may be rendered. Typically, to keep routing clear, only route templates should make use of {{outlet}}. Using {{outlet}} outside of a route template, e.g. in a component or a partial, will often lead to unexpected rendering locations for child routes.

Examples

This rule forbids the following (except in routes):

{{outlet}}

References