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/orangular.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?
My goal is to ensure that the consumer of the library does not need to make any configuration changes in their project. They should only need to install the library, import it, and use the provided API without needing to adjust their own configuration for asset management.
How can I achieve this please?
New contributor
abdou_behind_the_code is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.