0
As you can see in the figure below the Angular component is composed of component, css and Html
in the midia-cadastrar.component.html file tried to put a simple implementation of Alert as you can see below;
<script type="text/javascript">
alert("alo tudo bem?");
</script>
Being that it didn’t take, but if I put in the index.html file that is at the root of the project it picks up perfectly.
I want to be able to implement Alert on the page midia-cadastrar.component.html file, how could I do that?