Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zwacky/angular-emoji-flags

turns a country code (ISO 3166) into a flag emoji
https://github.com/zwacky/angular-emoji-flags

Last synced: 5 days ago
JSON representation

turns a country code (ISO 3166) into a flag emoji

Awesome Lists containing this project

README

        

# angular-emoji-flags [![Build Status](https://travis-ci.org/zwacky/angular-emoji-flags.svg?branch=master)](https://travis-ci.org/zwacky/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!