-
Notifications
You must be signed in to change notification settings - Fork 27k
Closed
Labels
area: routerfeatureIssue that requests a new featureIssue that requests a new featurefeature: under considerationFeature request for which voting has completed and the request is now under considerationFeature request for which voting has completed and the request is now under considerationfreq1: low
Milestone
Description
🚀 feat(router-link): Accept UrlTree as input
Relevant Package
This feature request is for @angular/router
Description
Currently [routerLink] directive accepts either an array of commands or a string. Since angular uses UrlTree as a model to store urls, it'd be great to extend this directive so that in addition it accepts a UrlTree.
Describe the solution you'd like
Let [routerLink] input accept commands: any[]|string|UrlTree.
Describe alternatives you've considered
- A different directive for this purpose. But having already a directive for that it'd be great to just extend the API.
- A pipe that converts a
UrlTreeinto a string. The problem is that the params that aUrlTreemight include should be extracted and put in their respective inputs. So that doesn't play nicely with all the featuresUrlTreehave.
itsUndefined, wibimaster, CapLonelyFlaw, geanpeixoto, RenePapeKmd and 41 more
Metadata
Metadata
Assignees
Labels
area: routerfeatureIssue that requests a new featureIssue that requests a new featurefeature: under considerationFeature request for which voting has completed and the request is now under considerationFeature request for which voting has completed and the request is now under considerationfreq1: low