I was having the same issue with edge. My website was not loading in edge after adding all the necessary polyfills.
I found that [hidden]
attribute has some issue while rendering content on the web page in edge(as it worked perfectly fine in Google Chrome, Mozilla, IE) and after removing that attribute website loaded absolutely fine in Edge.
So instead of using [hidden]
I use *ngIf
to show and hide contents.
And the possible reason I found for this not working in Microsoft edge is:-
The hidden global attribute is a Boolean attribute indicating that the element is not yet, or is no longer, relevant. So, Browsers won’t render elements with the hidden attribute set.
Browsers attach "display: none
" styles to elements with hidden attribute.
And when component gets load the style "display: none" is not updated automatically.
And *ngIf
doesn’t show/hide element based on display property like hidden. It works by adding and removing elements from the DOM.