[ Component In-progress ]
- Angular 11.2.0 -> latest version
npm install flag-pipe
ORyarn add flag-pipe
ORpnpm add flag-pipe
import { FlagPipeModule } from "flag-pipe";
@NgModule({
imports: [
flagPipeModule.forRoot({
config: {
flagExtensions: "png",
flagType: "FIXED_HEIGHT",
flagSize: "h20",
},
}),
]
})
-
->
CountryCode
type already implemented inflag-pipe
library you can use it asCountryCode
type. REF : ISO 3166-1 alpha-2 + Country Codes in Json -
->
flagExtension
type already implemented inflag-pipe
library you can use it asflagExtension
type. -
->
flagTypies
type already implemented inflag-pipe
library you can use it asflagTypies
type. -
->
FlagSize
type already implemented inflag-pipe
library you can use it asFlagSize
type.flag Type FIXED_HEIGHT FIXED_WIDTH WAVY flag Size Format h20
w20
36x27
Img
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.