Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zwacky/angular-emoji-flags
- Owner: zwacky
- Created: 2015-11-19T21:04:13.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-04T08:19:16.000Z (about 7 years ago)
- Last Synced: 2024-10-07T10:27:14.525Z (about 1 month ago)
- Language: TypeScript
- Size: 27.3 KB
- Stars: 7
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!