X Tutup
Skip to content

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

@vicb

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    X Tutup