You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The {{link-to}} component allows you to invoke it with replace=true, which causes it to not call transitionTo, but replaceWith instead. Like this:
{{#link-to"some.route"replace=true}}
Link Text
{{/link-to}}
Would be nice, if we could do the something similar with {{href-to}}. Since the helper can't attach meta info to the <a> tag, we can't do it as a named param for the helper. Instead I propose allowing users to set a data-href-replace attribute on the tag, kinda like we already do for ignoring links:
The
{{link-to}}
component allows you to invoke it withreplace=true
, which causes it to not calltransitionTo
, butreplaceWith
instead. Like this:Would be nice, if we could do the something similar with
{{href-to}}
. Since the helper can't attach meta info to the<a>
tag, we can't do it as a named param for the helper. Instead I propose allowing users to set adata-href-replace
attribute on the tag, kinda like we already do for ignoring links:ember-href-to/addon/href-to.js
Lines 46 to 48 in 36c2fa8
So this would look like
The text was updated successfully, but these errors were encountered: