How should I add a script to a component view in Angular ? if I write it in the component.html it disapears in the view source of the html page , but I managed to add the script with DOM sanitizer and I can see the script tag in the source code of the page when I do the view source , but angular simply ignores it.
here is the script that I want to add to the page
<script
type='text/javascript'
src='https://test-www.payson.se/embedded/Content/payson.js?v2'>
</script>