Skip to content

Latest commit

 

History

History
91 lines (55 loc) · 2.43 KB

File metadata and controls

91 lines (55 loc) · 2.43 KB

angular-emojiuni Build Status Coverage Status

Emoji Unicode for Angular web application. This module is best for sharing data between Native app and Web app.

For more information about emoji unicode tables, please visit

http://apps.timwhitlock.info/emoji/tables/unicode

Usage

Installing

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.

Using

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>

Documentation

See Getting started

Release History

See CHANGELOG.md

Contributing

See CONTRIBUTING.md

License

MIT - Copyright (c) 2014 Angularfiy.org & HenryTao.