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.

franco
  • 619
  • 1
  • 7
  • 18
  • 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". – LHM Feb 11 '20 at 19:49
  • I think so too. – G-Unit Aug 31 '21 at 12:52

0 Answers0