title: Angular 8 - load scripts inside Angular component html div
body: <p>I have the below two scripts which need to be inserted into a specific div on my component.html page.  I've tried using dom sanitizer with no luck.  I've also tried creating the script tags in ngAfterViewInit as suggested here: <a href="https://stackoverflow.com/questions/35570746/angular2-including-thirdparty-js-scripts-in-component/35570783#35570783">angular2: including thirdparty js scripts in component</a>.  </p>
  
  <pre><code>&lt;div id="uniqueId"&gt;
      &lt;script src='https://script.js' type='text/javascript'&gt;&lt;/script&gt;
  
      &lt;script type='text/javascript'&gt;
        initializeFunction('123456789');
      &lt;/script&gt;
  
  &lt;/div&gt;
  </code></pre>