ewf

ember-world-flags

Display country flags in your ember application.

Showing:

Popularity

Downloads/wk

309

GitHub Stars

7

Maintenance

Last Commit

1yr ago

Contributors

3

Package

Dependencies

1

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Ember-World-Flags

npm Version Build Status Ember Observer Score

This addon provides a world-flag component that can display any country's flag in any arbitrary size.

Installation

  • ember-cli < 0.2.3 ember install:addon ember-world-flags
  • ember-cli >= 0.2.3 ember install ember-world-flags

Example Usage

{{world-flag-svg "ca"}}
{{world-flag-svg "ca" 32}}
{{world-flag-svg "ca" 50}}

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

{{world-flag "ca"}}
{{world-flag "ca" 16}}
{{world-flag "ca" 32}}

Check out the demo on github pages.

Contributing

This README outlines the details of collaborating on this Ember addon.

Installation

  • git clone this repository
  • npm install
  • bower install

Running

  • ember server
  • Visit your app at http://localhost:4200.

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial