Deprecate positional arguments and non-block usage of {{link-to}}
#614
Labels
T-framework
RFCs that impact the ember.js library
{{link-to}}
#614
In #311 we added official named arguments to
{{link-to}}
(and therefore making<LinkTo>
possible). Now that people have had time to migrate (and there are codemods available), it is time to kill the positional arguments api for{{link-to}}
.Reasons:
{{link-to}}
is not)It would be nice the get on this asap so the deprecation can land before strict mode (#496) lands in a stable release. Otherwise, we will end up in a situation where the "normal" version of
<LinkTo>
requires an import but the "legacy" form{{link-to}}
does not. That will be a while, so we have some time, but still we should start soon.I would expect that this should also deprecate
(query-params)
as it is not necessary using the named arguments version.To be clear,
{{#link-to route=... model=...}}...{{/link-to}}
would still work, because you can invoke any components with either curly or angle bracket form, but it's the positional arguments mapping that we are talking about here.The text was updated successfully, but these errors were encountered: