how to render html text with {{action}} as ember html inside a template?

Viewed 27

Hi I have computed property that returns an html link with an ember action like this:

externalHtmlLink:

<a {{action 'runService' 15001}} href="#">Click Here</a>

but if I render this inside the template like this:

{{{externalHtmlLink}}}

it renders the Action part as text and not as an Ember Html, and the action is never triggered. How should I render the link so the action is rendered by Ember?

1 Answers

does rendering your component with only two sets of {} work?

e.g.:

{{externalHtmlLink}}

It's been a good number of years since this syntax

any chance I can encourage you to upgrade?

There is a guide here: https://emberjs.com/editions/octane/

Related