Skip to content

asafdav/ng-flags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ng-flags - AngularJS country flags directive

Simple directive for country flags, The directive takes country iso code and creates a thumbnail of the country's flag.

Usage

  1. Add ng-flag.js to your main file (index.html)

  2. Set ngFlag as a dependency in your module

var myapp = angular.module('myapp', ['ngFlag'])
  1. Add the following line to the head section of your main file
<link rel="stylesheet" type="text/css" href="http://cloud.github.com/downloads/lafeber/world-flags-sprite/flags16.css" />
  1. Start drawing flags
<flag country="us" size="16"></flag>

* 32x32 thumbnails are also supported, just add the following line to your head:

```code
<link rel="stylesheet" type="text/css" href="http://cloud.github.com/downloads/lafeber/world-flags-sprite/flags32.css" />

And and specify the wanted sizein your html:

<flag country="us" size="32"></flag>

Bitdeli Badge

About

Simple directive for country flags

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •