Scripts in my Angular app are not loading
P粉253518620
P粉253518620 2023-08-18 13:55:42
0
1
428
<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粉253518620
P粉253518620

reply all(1)
P粉043295337
  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.
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!