For instance: https://stackblitz.com/edit/angular-mkcfsd
In my project, I have an icon component called app-icon which dynamically takes a path and inserts it into an SVG viewbox. I extract the height and width of the path, then set the SVG to match those dimensions. This ensures that the icon aligns properly wherever it is used. However, I've encountered an issue where the wrapper of the app-icon seems to add 3-4px to the height/width of each icon for some unknown reason. There doesn't appear to be any padding or margin causing this discrepancy (you can inspect the app-icon element and compare it to its children).
I thought about setting the :host equal to the width and height of the path, but I haven't found a way to do this dynamically yet. So far, I have only been able to apply styles to the host from my SCSS file, but unfortunately, I'm unable to update these styles in real-time.