how to use smilies with codes[i.e :-) ] in angular.js??

1.1k Views Asked by At

I am looking to attach smiles to my messages on a application. But I am unable to find the smiles in angular.js . I am finding some like :smile: then the symbol comes. But I want this to be done with codes like :-) , :-( then a smile and sad symbols needs to come respectively.

Thanks in advance.

2

There are 2 best solutions below

1
On

You will need to look for a angular module that adds emoji autocomeplete for textareas.

A couple of examples that may suit your need:

1
On

You are seeing them come through with :smile: because that's the emoji code for smily face.

Take a look at http://www.emoji-cheat-sheet.com/

But if you really wanted to you could write a angular filter that would replace anywhere you saw a ":-)" with a :smile: and then the other filters would render the emoji as you'd expect.