nxt-flags
TypeScript icon, indicating that this package has built-in type declarations

17.0.1 • Public • Published

nxt-flags

GitHub license npm scope

Angular component to show flags based on country ISO code.

Quick links

Installing

npm install --save nxt-flags

Import flags module

import { FlagsModule } from 'nxt-flags'

@NgModule({
    ...
    imports: [
        ...
        FlagsModule
    ]
})

Add flags SVGs to Angular compilation

{
    ...
    "assets": [
        ...,
        {
            "glob": "**/*",
            "input": "./node_modules/nxt-flags/assets/flags",
            "output": "./assets/flags"
        }
    ]
}

Include it in HTML template

Use the tag nxt-flag with attribute country="xx" (where xx is the ISO 3166-1-alpha-2 code of a country):

<nxt-flag country="br"></nxt-flag>

Package Sidebar

Install

npm i nxt-flags

Weekly Downloads

201

Version

17.0.1

License

MIT

Unpacked Size

1.93 MB

Total Files

262

Last publish

Collaborators

  • hitko