-4

I need to add full-screen menu in my project and I found a demo on https://codepen.io/taniarascia/pen/yYrXRG. I copied the code from codepen and pasted in my project but it is not working. How to convert JQuery to Angular 6?

I solved the issue but not able to delete this question

Midhilaj
  • 4,905
  • 9
  • 45
  • 88

1 Answers1

3

It's doable to include jQuery in an Angular project (as answered here and demonstrated here) but you really shouldn't need jQuery when creating an Angular app. It introduces a lot of unnecessary bloat and risk of bugs for a framework that provides libraries to do this sort of thing already (see Angular Animations).

In most cases, unless it's a legacy app and jQuery is already being used, it's best to avoid using jQuery since ES6 and newer provides everything you need.

Steve Whitmore
  • 903
  • 1
  • 9
  • 22