DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป is a community of 970,177 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
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 Author

right said

Collapse
 
dgrammatiko profile image
Dimitri Grammatikogianni

Just skip the jQuery part and you'll be fine

Collapse
 
ajaydeveloper profile image
AjayMalhotra Author

Okay I will try this.

๐ŸŒš Friends don't let friends browse without dark mode.

Just kidding, it's a personal preference. But you can change your theme, font, etc. in your settings.

The more you know. ๐ŸŒˆ