angular-emoji-flags

0.2.4 • Public • Published

angular-emoji-flags Build Status

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

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!

Readme

Keywords

Package Sidebar

Install

npm i angular-emoji-flags

Weekly Downloads

6

Version

0.2.4

License

MIT

Last publish

Collaborators

  • zwacky