angular-emoji-flags
v0.2.4
Published
turns a country code (ISO 3166) into a flag emoji
Downloads
63
Readme
angular-emoji-flags
turns a country code (ISO 3166) into a flag emoji.
Installation
npm install angular-emoji-flags
- add
angular-emoji-flags
to your angular.module dependency, ususally app.js
## Demo
- https://jsbin.com/yigimoxuku/edit?html,js,output
- or
npm install && gulp watch
to run the demo locally
## Emoji Support
Not every OS and Browser are able to display emojis. Check the support here: http://caniemoji.com
## Usage
// in controller
$scope.emoji = emojiFlags.getFlagByCountry('us');
// in template as a filter
{{ 'us' | asEmojiFlag }}
Working Document
Currently there are 197 countries supported. 60 are still missing.
For the full list of supported and missing countries please refer to: https://docs.google.com/spreadsheets/d/15yDAA8Fcl-pVfhDZRJQQUbJia_zj_33IzjRmLM3D_3w/edit?usp=sharing
Contribute
- Just use
gulp watch
and hack away!