mirror of
https://github.com/lipis/flag-icons.git
synced 2026-04-26 09:25:50 +03:00
[GH-ISSUE #193] Using ionic, couldn't get it to work #132
Labels
No labels
3rd-party
3rd-party
bug
code
documentation
enhancement
fixed-in-master
flag-request
help needed
missing-flag
missing-flag
pull-request
wrong-flag
wrong-flag
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flag-icons#132
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @egemenertugrul on GitHub (Jan 31, 2016).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/193
I'm currently using Ionic Framework and after i did
npm installandnpm install flag-icon-cssi couldnt get it to work. flags don't show up in my span. What do i have to do additionally?@lipis commented on GitHub (Jan 31, 2016):
set the correct path I guess..
@stjepan commented on GitHub (Feb 9, 2016):
It worked for me. Start up your NodeJs command prompt and go to the root folder of your ionic application and do following:
npm install --save flag-icon-cssbower install --save flag-icon-cssNow back in your index.html (or what ever is your application startup file), include the css-file which is now in the lib/flag-icon-css/css folder.
<link href="lib/flag-icon-css/css/flag-icon.min.css" rel="stylesheet">Now you're free to use it in you html files like this:
<i class="flag-icon flag-icon-gr"></i>@lipis commented on GitHub (Feb 23, 2016):
I guess everything should be ok.. :)
@JeetuChoudhary commented on GitHub (Aug 20, 2017):
I am facing the same issue. I did as described above, still it is not working
@RalPhounet commented on GitHub (May 28, 2018):
You can download the flag-icon-css-master.zip there http://flag-icon-css.lip.is/.
The you can just copy the"css/flag-icon.css" file into your Ionic project "src/assets/css" folder, and the"flags" folder into your "src/assets/flags".
Then add the
<link href="assets/css/flag-icon.css" rel="stylesheet">line in your index.html.Now you're free to use it in you html files like this:
@oberghea commented on GitHub (Jul 31, 2019):
If you are into a React project you need to import in your root index the
CSSfile, like this:import 'flag-icon-css/css/flag-icon.min.css';@jayordway commented on GitHub (Oct 10, 2019):
To import the css within an ionic project add it the styles to your angular.json file.
@manaclan commented on GitHub (Nov 21, 2021):
as of 21/11/2021, the path should be
flag-icon-css/css/flag-icons.min.css