I'm trying to load a series of scripts from a component of an angular application, I want to do it in a specific component and not in the index.html but I can't find a way to do it, any help or advice?
this is my code home.component.html
<div class="row">
<div id="webchat" style="position: relative;z-index: 999999;"></div>
<script>
window.GB_SETUP={websocket_url: "wss://api-mychat.com", type:"config",
channel: "6342", session_id: "34345", style:"343234"};
</script>
<script src="https://myscript.com/script.js"></script>
<script src="https://myscript.com/script2.js"></script>
</div>
If I copy and paste as is in the index.html of the project it works great, but I want to do it inside a component
import?