DEV Community

AjayMalhotra
AjayMalhotra

Posted on

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.