Linked Questions

46 votes
4 answers
64k views

I have lots of JS files in my project. I want to load them when particular module or component load not when the app start. How to do this? Currently, I am loading them in index.html. The other way ...
Sudhanshu sharma's user avatar
235 votes
23 answers
366k views

I have this module which componentize the external library together with additional logic without adding the <script> tag directly into the index.html: import 'http://external.com/path/file.js' ...
CallMeLaNN's user avatar
  • 8,608
67 votes
9 answers
225k views

I'm going to import this d3gauge.js file into one of my angular2 component, memmon.component.ts file. import '../../../../js/d3gauge.js'; export class MemMonComponent { createMemGauge() { ...
Bing Lu's user avatar
  • 3,432
5 votes
2 answers
5k views

My app website is not working fine on IE11. The website is not loading, it gives me a blank page This is the error thrown on IE11 : SCRIPT5005: String expected js (26,286) SCRIPT5022: Exception ...
Vincent 'On-arap' Burel's user avatar
0 votes
1 answer
3k views

I have custom1.js, custom2.js, custom3.js JS files and load these files into Angular component1,component2,component3 respectively. I can add these files to the index.html files but Don't want to load ...
ranjit redekar's user avatar
2 votes
1 answer
2k views

I am new to Angular(6) and I want to know where to add page specific script in angular 6, which I have placed earlier in .cshtml file? I have found many ways to include external JS file in Angular, ...
fine line's user avatar
  • 305
0 votes
1 answer
2k views

I am using Angular 6 along with videojs-record plugin. I configured following dependencies in my project. npm install --save video.js npm install --save videojs-record Later I referenced the videojs ...
CuriousMind's user avatar
  • 3,183
0 votes
2 answers
1k views

Can anyone help me how to call a function from external js file inside my angular2 component. Below is my code snippet, when I am trying to load the application it is throwing App is undefined error. ...
Surya's user avatar
  • 27
0 votes
2 answers
1k views

I am working in angular2 vs typescript. In my app.component.ts file i have to load the script files on demand based current navigator language. So i have added my function like below(home.component....
Sasi Dhivya's user avatar
1 vote
1 answer
922 views

I get the error: core.js:5882 ERROR TypeError: Cannot read property 'configure' of undefined when I implement a Hosted Session Integration for Mastercard in Angular 2. Here is my code: payment-...
Ibanez1408's user avatar
  • 5,108
0 votes
1 answer
661 views

i am new in angular , i have installed bootsrap 4.6.0 on angular 12 and the bootsrap worked fine and the footer section appeared like it should appear except one little thing , the icons are refusing ...
LearnDeep's user avatar
1 vote
1 answer
1k views

I'm building an Angular 5 app and I'm trying to add a widget to one of the components. I try adding it like the answer in this question, but it fails to load some times, I don't know why. The widget ...
David Prieto's user avatar
  • 2,299
0 votes
1 answer
854 views

As title suggested I am facing some issues while trying to import the external js and css files into Angular 5 Application. Here is code snippet that I did tried till now Component.ts : ngOnInit() { ...
Ganesh's user avatar
  • 6,066
1 vote
1 answer
1k views

I would like to use an external JS library into my Angular 11 project created using the Angular-CLI. From many answers (1, 2, 3), I see that one way to achieve this is by adding the path to the JS ...
umbe1987's user avatar
  • 3,698
0 votes
0 answers
611 views

We have an Angular 2 Project, where we try not to have any jquery dependency. BUT, we somehow have to load a script and run that. Until now this is the only place where we used jquery's getScript. ...
akcasoy's user avatar
  • 7,318

15 30 50 per page