This addon provides a world-flag
component that can display any country's flag in any arbitrary size.
- Ember.js v4.4 or above
- Ember CLI v4.4 or above
- Node.js v14 or above
ember install ember-world-flags
in the examples above, "ca" is the ISO 3166-1 alpha-2 code and the 2nd argument is the size of the flag, in pixels. eg 50 means a flag the flag will be 50 pixels by 50 pixels.
There is also the original legacy helper that provides flags from a png file in only two sizes: 16x16 or 32x32
Check out the demo on github pages.
git clone
this repositoryyarn install
ember server
- Visit your app at http://localhost:4200.
ember test
ember test --server
This project is licensed under the MIT License.