javascript - ember: how to convert anchor tag with href to link-to? -
in our ember application, having strange requirement.
from api, receiving message has link other page in same application.
for ex: "offers/1/checkout"
the message receiving is:
"thanks reply. <a href='offers/1/checkout'>click here</a> proceed further"
now when use above message, display in template, , when user click on click here link, whole app reloads.
is there way stop reload of app? or can convert simple href link using link-to helper?
thanks
you might want @ addon https://github.com/intercom/ember-href-to/blob/master/addon/helpers/href-to.js
looking code, has mechanics enable you're looking for. if doesn't work, setup pairing session me , i'll make work.
Comments
Post a Comment