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.

http://j.mp/embersherpa


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -