arkon / ng-inline-svg

[Inactive] Angular directive for inserting an SVG file inline within an element.
https://echeung.me/ng-inline-svg/
MIT License
210 stars 88 forks source link

Styling problems #60

Closed kasienna closed 6 years ago

kasienna commented 6 years ago

SVGs within directive seem to be style encapsulated. I wonder how to apply my own component styles on svg loaded by directive.

This whole angular approach on partial including seems to be way too complicated

kasienna commented 6 years ago

I figured it out you need to add encapsulation: ViewEncapsulation.None, to the component definition. Perhaps it's worth to add this to docs

arkon commented 6 years ago

This whole angular approach on partial including seems to be way too complicated

Yeah, that about sums up my thoughts on Angular. /shrug