1.0.1 • Published 6 years ago

ngx-flag-icon-css v1.0.1

Weekly downloads
688
License
-
Repository
github
Last release
6 years ago

ngx-flag-icon-css

npm version


flag-icon-css for Angular 2+


Example:

<flag-icon country="fr" squared></flag-icon>
  • country (Input):
    the ISO 3166-1-alpha-2 code of the flag's country

  • squared (Input):
    if added, will render a squared version of the flag


Install:

  1. Install both this library as well as flag-icon-css
npm install ngx-flag-icon-css flag-icon-css
  1. Add the path to the flag-icon-css stylesheet to your angular.json file (inside the "styles" entry)
    Note: This key should still exist in the old .angular-cli.json format
"styles": [
  "src/styles.css",
  "node_modules/flag-icon-css/css/flag-icon.min.css"
],