This repository has been archived by the owner on Mar 27, 2023. It is now read-only.
How to use Icons in an Angular example project #6298
Replies: 1 comment 11 replies
-
I think the documentation assumes a certain degree of comfort/ease with angular that may not always be the case. The reason the documentation does not tell people where to put that code is because the could be placed in a number of spots. I prefer putting it in the app module. But others have had success by putting it in a component.ts file. There is an example in our repo: https://github.com/vmware/clarity/blob/next/apps/core-angular-cli/src/app/app.module.ts The example shows the icons being added in the constructor. I don't think that's necessary. But it's an example of how there are many ways to add icons. |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After hours of fiddling around, I am not able to display a single icon in an Angular project.
I've read the following resources:
I've also came across some random pages, and after trying everything from scratch many times, it does not work.
Only a three-dot loading animation is shown instead of the icon itself.
Could it be possible to have a full step-by-step (including any commands) to get it to work with full file extract and filenames, using the latest versions of everything?
Knowing where to put things is the biggest hurdle here. Like I have no idea where to put the following snippet as no filename is given or precise instructions:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions