Hello,
I am trying to use the icons from HTML template to Angular but it shows blank only.
https://preview.keenthemes.com/html/metronic/docs/icons/keenicons
Can you please help me out that how to use it in my angular project?
Thanks in Advance. Appreciated.
You're very welcome! I'm glad to hear that. If you have any more questions or need further assistance, please don't hesitate to ask. Keep up the great work.
Thanks
Hi Faizal,
Thank you so much for the detailed stepwise go through for the icons. I really appreciate it. It really helped to understand the flow of css and icons.
You are doing great work.
Thanks.
Hi Durvesh,
To use the KeenIcons in your Angular project, make sure you have imported the necessary CSS files. Here's how you can import the KeenIcons CSS files in your project:
In your Angular project, locate the file where you have your global styles defined. This file is usually named /src/styles.scss.
Open the file and add the following import statements at the top, before any other styles:
@import "./assets/plugins/keenicons/duotone/style.css"; @import "./assets/plugins/keenicons/outline/style.css"; @import "./assets/plugins/keenicons/solid/style.css";
Make sure the paths to the CSS files are correct based on the location of your assets directory.
After importing the CSS files, you can use the KeenIcons in your Angular templates using their respective class names. Refer to the KeenIcons documentation ( https://preview.keenthemes.com/html/metronic/docs/icons/keenicons ) for the available icons and their corresponding class names.
I hope this helps! Let me know if you have any further questions.
Thanks