Angular component to show flags based on country ISO code.
npm install --save nxt-flags
import { FlagsModule } from 'nxt-flags'
@NgModule({
...
imports: [
...
FlagsModule
]
})
{
...
"assets": [
...,
{
"glob": "**/*",
"input": "./node_modules/nxt-flags/assets/flags",
"output": "./assets/flags"
}
]
}
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>