In my current project, I have a list of items where each item, when clicked, should reveal another view next to it. The challenge I am facing is setting the offsetTop of this view to match the item's offsetTop. While I have a solution using jQuery, I am struggling to find a way to achieve this in pure AngularJS. Here is what I've attempted so far:
top = angular.element('#user'+user.id).prop('offsetTop');
angular.element('#feed-details').css('margin-top', top);
Unfortunately, this code snippet does not produce the desired effect. Does anyone have suggestions on how to accomplish this in AngularJS?