It’s kinda weird question and yes I know it’s not the way you have to do it but I can’t do this without jquery.
My app is duplicating buttons, after it duplicates the button it is possible to give it a position with drag / dropping on the page.
But now the question, if the button has been dragged and it sticks on his position. I want when you click on it that there would be a possibilty to delete it.
Where in which file I can create common jQuery functions like this:
Already tried in the index.html. But then I get the message $ is not defined.
But I got jquery imported in app.module.ts and app.component.ts.
Yeah I know it’s ugly code. But there is no other nice solution for it
There has got to be a way to achieve this without jQuery and direct DOM hackery. Can’t you use an ngFor loop and property binding to set button position?