I am beginner in angular cli and I was wondering: can I use this https://github.com/lipis/flag-icon-css in package.json because when there is an update it's more easy to update automatically and I don't have to do it manually. And is it a problem that Flag icon are SCSS and I use SASS in my angular 2 project?
The stick and the flag should be inline so we make the wrapper div's display property to flex. And add some height, width, background-color, border styles to the stick, and in the flag, add height, width, box-shadow, background-color, and position properties.
Installation:
npm install flag-icon-css --save
Updating the styles section in the angular.json file (if you use Angular < 6.0.0 - then angular-cli.json):
"styles": [
"node_modules/flag-icon-css/css/flag-icon.min.css",
.....
],
Use in templates:
<span class="flag-icon flag-icon-ru"></span>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With