0.0.5 • Published 2 years ago

angular-countries-flags v0.0.5

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Angular Countries Flags

A super simple angular library for displaying country flag.

Installation & Usage

  1. Install the package Run the following command in your angular project to install the package.
npm i angular-countries-flags
  1. Import AngularCountriesFlagsModule from angular-countries-flags in the module you want to use the flag component.
import { AngularCountriesFlagsModule } from 'angular-countries-flags'

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    AngularCountriesFlagsModule
  ]
  bootstrap: [AppComponent]
})
  1. Use the component to render flag in component.
<flag [code]="'IN'" [size]="'lg'"  [effect]="'round'"></flag>

Input Properties

Property & typeValid ValuesIs Required
code : stringISO 3166-1 alpha-2 country codeYes
size :string'sm' , 'md' , 'lg' , 'xl'No(Default to 'sm')
effect :string'round','sphere','wave','app'No
0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago