Before I dive in, let me just mention that I have searched extensively for a solution to my problem without much luck. The issue is describing exactly what I'm trying to accomplish in a way that yields relevant search results.
If you're interested, here's the link to the StackBlitz demo: https://stackblitz.com/edit/angular-gvgj4s
The task at hand involves creating a component which allows users to add a special needs service along with a comment. Each service is displayed using ngFor and grid layout, complete with a "comment" button.
I've attempted to visualize my goal in this image:
An essential requirement is that the comment "pop-up" must appear relative to the corresponding "comment" button clicked. To facilitate this, I've incorporated ngTemplateOutlet within the ngFor loop. My dilemma arises when the "comment" button triggers movement throughout the grid layout.
I did manage to achieve positioning outside the ngFor loop inside a div, but it lacks the desired relative position to the clicked button.
Thank you in advance for your assistance!