search

Home  >  Q&A  >  body text

Scripts in my Angular app are not loading

<p>I recently started learning Angular and ran into a problem that I'm not sure how to solve. My script is not loading. </p> <p>I tried including them in the index.html file, but nothing happened - not even any errors showed up in the console. I also tried adding them in the angular.json file but the problem persists. </p> <p>(https://i.stack.imgur.com/Zw00o.png)</p> <p>(https://i.stack.imgur.com/M7ghw.png)</p>
P粉253518620P粉253518620464 days ago456

reply all(1)I'll reply

  • P粉043295337

    P粉0432953372023-08-19 13:03:35

    1. Angular is TypeScript, importing it this way won't work.
    2. For all these scripts you use, you can find the corresponding package to implement them. Find the package on npm and install it.
    3. package.json is responsible for your "scripts".
    4. I suggest you start step by step. Especially given your current experience.

    reply
    0
  • Cancelreply