tengo una plantilla que funciona bien en visual studio, pero cuando traté de usarla en mi proyecto angular no sé por qué el código javascript no funciona, llené app.component.html con el código html y importó el código css. instalé bootstrap y font-awesome. el único problema que tengo es que no sé cómo agregar código javascript a mi proyecto (angular 13 por cierto).
(function ($) { "use strict"; // Spinner var spinner = function () { setTimeout(function () { if ($('#spinner').length > 0) { $('#spinner').removeClass('show'); } }, 1); }; spinner();Uso javascript en mi proyecto angular. Intente importar javascript en your-project/src/index.html dentro de la etiqueta del cuerpo.
<body> <app-root id="app-root"></app-root> <script> </script> </body>