vue flag icon component
npm install vue-flag-icona Vue2 Compoment for flag-icon
npm i --save vue-flag-icon
`Usage
Just declare the global Compoment with the use directive in your app
`javascript
import FlagIcon from 'vue-flag-icon'
Vue.use(FlagIcon);
`Then to use it
`html
...
...
`
To see a full set of all the icons and countries iso codes visit the flag-icon-css website.
There are 246 different icons there.Being svg files they are resizable as long as you set the font size accordingly in a wrapper element
`html
`The property iso can be as well dynamically set from an object
`javascript
let guy = {
name: "Vincenzo",
nationality: "it"
}
`in the Compoment you should dynamically bind the value
`html
`Screenshot
$3
(it is the basic vue-cli webpack template)
`html

``