But I tried the same code by creating another blank project. I added the same code to the index.html and it is working without any errors as below.
What is the reason behind this? Working fine with a new blank project after inserting the same code in the index.html?
Waiting for a quick response. Thank you