Created
July 11, 2013 08:42
-
-
Save jamesallardice/5973692 to your computer and use it in GitHub Desktop.
AngularJS Emoji filter example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module("app", [ | |
"emoji" // Module dependency | |
]).controller("AppCtrl", function ($scope) { | |
$scope.message = "String including Emoji codes :smiley:"; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
:p