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.

Retry later
Retry later