Skip to content

Instantly share code, notes, and snippets.

@jamesallardice
Created July 11, 2013 08:42
Show Gist options
  • Save jamesallardice/5973692 to your computer and use it in GitHub Desktop.
Save jamesallardice/5973692 to your computer and use it in GitHub Desktop.
AngularJS Emoji filter example
<!doctype>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="emoji.min.css">
<script src="angular.min.js"></script>
<script src="emoji.min.js"></script>
</head>
<body ng-app ng-controller="AppCtrl">
<textarea ng-model="message"></textarea>
<p ng-bind-html-unsafe="message | emoji"></p>
</body>
</html>
angular.module("app", [
"emoji" // Module dependency
]).controller("AppCtrl", function ($scope) {
$scope.message = "String including Emoji codes :smiley:";
});
@yosrato
Copy link

yosrato commented May 18, 2016

:p

@yosrato
Copy link

yosrato commented May 18, 2016

📄

@yosrato
Copy link

yosrato commented May 18, 2016

📟

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment