There was an error while loading. Please reload this page.
Download the Production version or the Development version.
Or download it with bower: open terminal and run
bower install bower-angular-emojiuni
Include js files into your web page:
<script type="text/javascript" src="[...]/emojiuni[.min].js"></script>
Add dependency to your app module:
angular.module('your-app-name', [ 'angular-emojiuni' ]);
The emojiuni module is now installed. It exposes the EmojiuniProvider provider, Emojiuni factory and emojiuni filter into your app.
emojiuni
EmojiuniProvider
Emojiuni
angular.module('app', [ 'angular-emojiuni' ]).config(function(EmojiuniProvider){ EmojiuniProvider.baseUrl = '/custom/base/url/'; var src = '<div>hello moto 😁</div>'; var dest = '<div>hello moto <img class="emojiuni" src="/custom/base/url/1f601.png" /></div>'; Emojiuni.compile(src); // should equal dest }).run(function(Emojiuni, $http){ var src = '<div>hello moto 😁</div>'; var dest = '<div>hello moto <img class="emojiuni" src="/custom/base/url/1f601.png" /></div>'; Emojiuni.compile(src); // should equal dest });
<div ng-bind="data | emojiuni"></div> <div>{{data | emojiuni}}</div>