-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: document addIcons usage #887
Comments
I found the current usage docs very confusing:
Then the usage example shows:
But this doesn't work with Ionic. I had to first use I finally figured out I could use |
Any news? |
I was able to get these to work as standalone imports with this:
and in
|
Hi,
Regards, |
Some users have expressed an interest in using functionality provided by addIcons, so it would be good to document its usage.
Use Case: ionic-team/ionic-framework#22181 A developer wants to dynamically show an icon based upon results from a server. They could do
(result) ? heart : heartOutline
, but they do not want to have to continually import each icon. In this case, it would be helpful for them to add the icon globally viaaddIcons
.The text was updated successfully, but these errors were encountered: