I'm currently exploring the feasibility of a specific idea, and I'm wondering if there's a better approach I should consider.
Here's a basic representation of where I am
My primary list is constantly being modified by other processes by adding or removing items. I've been using NgFor to generate the items and utilizing the adjacent sibling combinator in my style sheet (+) to add margin-top to all items except the first one. Additionally, I use ngClass to apply the class itself. So far, so good...
Now, I want the value of margin-top to be dynamic and linked to a value from another service.
Therefore, my question simply is: Is there a way to incorporate the adjacent sibling selector with a dynamic value for the style it applies?