3

I have an external script that I want to add in my Angular 6 project

https://maps.googleapis.com/maps/api/js?key=KEY

I know I can import this in the script tag in my index.html

<script src="https://maps.googleapis.com/maps/api/jskey=KEY"></script>

But I was wondering if there is a much cleaner way to do this? Such as importing from angular.json in the scripts section.

2
  • I think this was incorrectly marked as a duplicate. The linked question does not address the possibility of "importing from angular.json in the scripts section". Commented Feb 11, 2020 at 19:49
  • I think so too. Commented Aug 31, 2021 at 12:52

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.