SAPikachu / icomoon-build

Build IcoMoon project in Node
MIT License
27 stars 9 forks source link

[Documentation] - Explain With More Detail How to Use This Generated SASS in Angular2 app #14

Open Mayocampo opened 6 years ago

Mayocampo commented 6 years ago

This is not a bug, and i know its a "kinda dumb" question.

Here's the deal, i'm new to Angular2 dev and i really love to see some examples on how to use in a real app these generated SASS. icomoon-build works great but then, i dont know how to actually call my glyphs inside my html templates...

I know i have to import this generated SASS into another one (maybe the one im using to style my app) and then what? if i include some like this < span class="icon-my-icomoon-generated-icon" > < /span >, that would work?

Thanks in advance for your time.

SAPikachu commented 6 years ago

Assuming you have imported the generated SASS and included necessary rules as mentioned in the readme, you can use icons in HTML like: <i class="icon icon-export"></i>.