How to remove script tags in index.html from Angular Component

Discussão em 'Angular' iniciado por Anthony Cuartero, Janeiro 17, 2025.

  1. <script data-jsd-embedded data-base-url="" data-key="" type="text/javascript" src="js-text-sample.js"></script>


    Above is my sample script tag which is on index.html

    I want to hide it inside an Angular component.

    The angular component will fetch a config first from the API. Then it will validate if it needs to hide the script or not.

    The script is a embedded widget that I need to hide if its false on the config API.

    How do I hide it from the component code?

    Continue reading...

Compartilhe esta Página