How can I create a reusable SVG icon component in Angular? (stackoverflow.com)stack
17 points by Farah Mahfouz in stackoverflow.com · 10d ago · stack
Problem I'm building an Angular 17 application that uses many custom SVG icons. Currently, each icon is implemented as a standalone component with an attribute selector: @Component({ selector: 'svg[icon-menu]', standalone: true, template: ` <svg:path d="..." fill="currentColor"…