DEV Community

AjayMalhotra
AjayMalhotra

Posted on

2

How to re-initialize jquery libraries on component load angular?

How to re-initialize jquery libraries on component load in my angular app?

Angular

    import $ from "jquery";

    ngAfterViewInit() {
      //your code
    }
Enter fullscreen mode Exit fullscreen mode

Thank you
Therichpost

Top comments (4)

Collapse
 
bgadrian profile image
Adrian B.G. โ€ข

I suggest using stackoverflow for this kind of questions, with code snippets and more detailed example.

On another line I suggest that you should not mix jQuery (imperative framework) with Angular/React/Vue (declarative), you will run into all sort of conceptual and technical problems.

Collapse
 
ajaydeveloper profile image
AjayMalhotra โ€ข

right said

Collapse
 
dgrammatiko profile image
Dimitri Grammatikogianni โ€ข

Just skip the jQuery part and you'll be fine

Collapse
 
ajaydeveloper profile image
AjayMalhotra โ€ข

Okay I will try this.

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

๐Ÿ‘‹ Kindness is contagious

Please leave a โค๏ธ or a friendly comment on this post if you found it helpful!

Okay