Reputation: 2710
I'm the responsible of make some news features and the maintenance of an Angular application (version 8.3.4). The first idea was that the application should work in all IE versions, but that is nonsense.
When I enter the application via Internet Explorer 11 it works, but it doesn't work for versions lower or equal than 9, then a white screen is displayed. I changed the target
to be es5
(Typescript- What is target in tsconfig?) but I cannot make compatible with older IE versions.
Is there a way to show an unsupported IE version message in the browser instead to show a white screen? Because some users, that use old machines, thinks that the application is break.
The client said to me that the minimum IE version that should show the message is IE7.
Upvotes: 0
Views: 115
Reputation: 1465
There is a feature known as conditional comments. It is designed to be recognizable by IE browsers exclusively and take no effect on non-IE browsers.
The syntax looks like this
<!--[if gt IE 9 ]>
<p>Only less than IE 9 will see this</p>
<![endif]-->
Please notice, that it works only for IE <= 9 versions.
Upvotes: 2