[ Component In-progress ]
- Angular 11.2.0 -> latest version
npm install flag-pipeORyarn add flag-pipeORpnpm add flag-pipe
import { FlagPipeModule } from "flag-pipe";@NgModule({
imports: [
flagPipeModule.forRoot({
config: {
flagExtensions: "png",
flagType: "FIXED_HEIGHT",
flagSize: "h20",
},
}),
]
})-
->
CountryCodetype already implemented inflag-pipelibrary you can use it asCountryCodetype. REF : ISO 3166-1 alpha-2 + Country Codes in Json -
->
flagExtensiontype already implemented inflag-pipelibrary you can use it asflagExtensiontype. -
->
flagTypiestype already implemented inflag-pipelibrary you can use it asflagTypiestype. -
->
FlagSizetype already implemented inflag-pipelibrary you can use it asFlagSizetype.flag Type FIXED_HEIGHT FIXED_WIDTH WAVY flag Size Format h20w2036x27Img
Full Example :
<img [src]="'qa' | flag : 'svg' : flagType : 'w160'" />- [ In-Progress ] Create a component to use it as
<flag>tag. - Add more features to the component.
- CI/CD with Github Actions.
Inspirations.
This project is an easy and simple project to contribute to. Feel free to open issues and pull requests.

