N
N
Neron2019-03-14 14:15:21
Angular
Neron, 2019-03-14 14:15:21

Angular 7.3.5 - SVGs are not displayed in Microsoft Edge, but they are displayed without angular, what's the problem?

SVG connected via object tag

<object type="image/svg+xml" data="assets/sample-icon.svg"></object>

Live example https://stackblitz.com/edit/angular-jvgtwl
In other browsers, everything is ok - both in the case of angular and without it (pure html + css). Also, pure html + css correctly displays the original svg in the hedgehog, but if you use the same code in angular, the hedgehog does not display svg, but other browsers do.
How to fix? How to make authenticated Svg render in Edge browser when using Angular? Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
monochromer, 2019-03-16
Lordov @Nekto_Habr

The problem is in some polyfills and this does not apply to svg in any way. I uncommented everything in the polyfills.ts file and got:
5c8c134097338845635258.png5c8c134b313cc110086424.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question