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: angular2: including thirdparty js scripts in component.
<div id="uniqueId">
<script src='https://script.js' type='text/javascript'></script>
<script type='text/javascript'>
initializeFunction('123456789');
</script>
</div>