I have an icon.svg file with a collection of icons that I would like to use in my app, similar to how we display material icons.
Does anyone have any ideas on how to include the file in the app and use these icons?
I've tried looking for solutions at:
Custom font import in Angular4
SVG icons from external file
how to generate webfont from SVG icons in angular
However, I am still struggling to display the icon.
This is how I would like to utilize the icons:
<span class="icon-home"></span>
which should then show the home icon. I'm also open to using CSS as demonstrated in some tutorials:
.icon-home:before
{
content: "\e900";
}
Could someone please help me understand how this all works?