How to integrate icons into an angular library?

Discussão em 'Angular' iniciado por abdou_behind_the_code, Setembro 23, 2024.

  1. I would like to integrate an SVG icons into my angular library's template, and I have the following questions?

    • Where should the /assets folder be located? Should it reside under /src or /src/lib within the library structure?
    • What modifications are required in the ng-package.json and/or angular.json files?
    • How should SVG icons be referenced in the component templates? Should they be referenced using relative paths, absolute paths, or does it not matter?

    How can I achieve this, please?

    Continue reading...

Compartilhe esta Página