So I'd like to move an angular component and I am well aware I can do it via construction and destruction such as this example: https://stackblitz.com/edit/angular-t3rxb3?file=src%2Fapp%2Fapp.component.html
However I have a scenario that my components are already part of the dom and would like to simple move them around in the dom as is (not create but just move location in dom).
I have a reference to source and destination class locations:
const dom: HTMLElement = this.el.nativeElement;
const elements1 = dom.querySelectorAll('.sourceClass');
const elements2 = dom.querySelectorAll('.destinationClass');
looked online but examples don't seem to have move only and want to avoid jQuery by all means.
and if I was using jQuery I'd use
jQuery('.destination').appendTo('.source');
which works well... Thanks
Sean