mercredi 12 octobre 2016

How to highlight a given word inside hbs?

Is there any way to highlight a given word inside an ember template?

Example:

var givenWord = "hello"

ember template is as follows:

<div>
<p>some text here, some another text with hello, again hello</p>
</div>

I want to apply specific CSS to the word hello (this word is dynamic) Appreciate any help!




Aucun commentaire:

Enregistrer un commentaire