Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

103
Views
how can i add javascript files into angular?

i have got a template works fine on visual studio , but when i tried to use it on my angular project i don't know why the javascript code doesn't work , i filled the app.component.html with the html code and i imported the css code . i installed bootstrap and font-awesome. the only problem i got is i don't know how to add javascript code into my project (angular 13 btw).

(function ($) {
"use strict";

// Spinner
var spinner = function () {
    setTimeout(function () {
        if ($('#spinner').length > 0) {
            $('#spinner').removeClass('show');
        }
    }, 1);
};
spinner();




 
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I use javascript in my angular project. Try to import javascript in your-project/src/index.html inside the body tag.

 <body>
    <app-root id="app-root"></app-root>
    <script> </script>
</body>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!