I learnt from google that I need to mention the key along with "maps.google[dot]com/maps/api/js?key=<my key>" But this I could find only when I view the page source, but not in the .cshtml file within the app folder. Now I have to edit the page source by right clicking on the browser and mention the key, and then overwrite the .cshtml file in the app folder.
Instead is there anyway I can mention the key in the project itself ?