Angular component to show country flags.
npm install nxt-flagssh
npm install --save nxt-flags
`
$3
`ts
import { FlagComponent } from 'nxt-flags'
@Component({
...
imports: [
...
FlagComponent
]
})
`
$3
`json
{
...
"assets": [
...,
{
"glob": "*/",
"input": "./node_modules/nxt-flags/assets/flags",
"output": "./assets/flags"
}
]
}
`
$3
Use the tag nxt-flag with attribute country="xx" (where xx is the ISO 3166-1-alpha-2 code of a country):
`html
``