Join the Stack Overflow Community
Stack Overflow is a community of 6.5 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

I'm working on an AngularJS2 project, and I would like to use 3 Javasript plugins in one of my components (jQuery, FreeWall & MetroJS)

In my component I would like to have a <script> tag as well with some JavaScript inside.

Unfortunately I am not really sure whether this all is possible. I've been searching the web but haven't really found the thing I was looking for.

So far I tried using a <script> tag in the main index.html, tried a few ways of importing it into the homepage.component.ts file and using a <script> tag in the homepage.component.html file. None of these actually worked.

Could someone help me out with importing external javascript plugins into components in AngularJS2? Thanks in advance!

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.