samedi 9 mai 2015

Angular: add HTML markup to string depending on keyboard input

I have an inputfield and I would like to print the input to the screen while I'm filling in the inputfield. However I'd like to scan the input text, to print certain words bold.

So for example, if I'm typing: "Hello how are you?"

I want it to be printed under the input field but Hello has to be in bold: Hello how are you ?

Is there a way in Angular to achieve this?

Aucun commentaire:

Enregistrer un commentaire