简体   繁体   中英

Adding a custom icon to the matIconRegistry?

I'm attempting to use the approach in the answer to this SO question to implement a custom material icon as shown in this Stackblitz .

However it renders the error:

Error retrieving icon: Unable to find icon with the name ":circle-icon"

Thoughts?

The official Angular Material Example for loading custom SVG icons does not work on their Stackblitz Demo as of August 31, 2019.

This appears to be a Stackblitz issue that is unrelated to matIconRegistry .

See StackBlitz issue #72: Support images & static assets

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM