Is it possible to embed a gist in Angular 4 using a script tag like this:
<script
src="https://gist.github.com/Slugpotato/bce9877d9c38d7415960e18fadc4efd7.js">
</script>
I am creating tutorials and would like to avoid cluttering the index.html file by keeping each gist in the typescript file associated with its component. I have searched for a solution but haven't found an easy answer yet.
Update: Since Angular doesn't allow script tags in HTML templates of components, I am curious to know how one can embed gists (provided as scripts) in a component's typescript file.