0.0.5 • Published 4 years ago
angular-countries-flags v0.0.5
Angular Countries Flags
A super simple angular library for displaying country flag.
Installation & Usage
- Install the package Run the following command in your angular project to install the package.
npm i angular-countries-flags- Import
AngularCountriesFlagsModulefromangular-countries-flagsin the module you want to use the flag component.
import { AngularCountriesFlagsModule } from 'angular-countries-flags'
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AngularCountriesFlagsModule
]
bootstrap: [AppComponent]
})- Use the component to render flag in component.
<flag [code]="'IN'" [size]="'lg'" [effect]="'round'"></flag>Input Properties
| Property & type | Valid Values | Is Required |
|---|---|---|
| code : string | ISO 3166-1 alpha-2 country code | Yes |
| size :string | 'sm' , 'md' , 'lg' , 'xl' | No(Default to 'sm') |
| effect :string | 'round','sphere','wave','app' | No |