I need to include the one remote file dynamically in script tag using Angular4.
Suppose I have one file name i.e-https://rawgithub.com/eligrey/FileSaver.js/master/FileSaver.js" type="text/javascript
as query string parameter in the url present in address bar e.g-http://example.com?file=https://rawgithub.com/eligrey/FileSaver.js/master/FileSaver.js
. In this case I need to fetch that value to app.componet.ts
page and include it using script tag.