As you can see in the figure below the component Angular is composed of component, css and HTMl
mediafile-cadastrar.component.htmlItriedtoputasimpleimplementationofalertasyoucanseebelow;
<scripttype="text/javascript">
alert("alo tudo bem?");
</script>
Being that it did not catch, but if I put in the index.html file that is in the root of the project it catches perfectly.
I want to be able to implement the alert in the page media-cadastrar.component.html file, how could I do this?