Skip to content

feat(router): improve RouterLink usability with a Link DSL #2845

Description

@vicb

<a router-link="/route1">route1</a> will crash badly (see #2843) because the expected syntax is
<a [router-link]="['/route1']">route1</a>

What about allowing the former syntax ? (using an array is overkill for simple use cases).

If we want to support array only, we should check the value when it is set.

/cc @delagen

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions