ng-flags

WebJar for ng-flags

License

License

MIT
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

ng-flags
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

ng-flags
WebJar for ng-flags
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/asafdav/ng-flags

Download ng-flags

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/ng-flags/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>ng-flags</artifactId>
    <version>0.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/ng-flags/
implementation 'org.webjars.bower:ng-flags:0.0.2'
// https://jarcasting.com/artifacts/org.webjars.bower/ng-flags/
implementation ("org.webjars.bower:ng-flags:0.0.2")
'org.webjars.bower:ng-flags:jar:0.0.2'
<dependency org="org.webjars.bower" name="ng-flags" rev="0.0.2">
  <artifact name="ng-flags" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='ng-flags', version='0.0.2')
)
libraryDependencies += "org.webjars.bower" % "ng-flags" % "0.0.2"
[org.webjars.bower/ng-flags "0.0.2"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.bower : angular jar [1.0.4,1.1)

Project Modules

There are no modules declared in this project.

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

Versions

Version
0.0.2
0.0.1