One of my tasks involves adding a button that, when clicked, should give the body the class "open-menu". Implementing this using jQuery was quite straightforward - I just needed to add the following line of code:
$('.burger').click(function() { $('body').toggleClass('menu-open'); }); };
However, I am facing difficulties in achieving the same functionality in Angular with TypeScript! Most of the resources I found online only cover toggling classes on the same element!