As a beginner in Angular, I am seeking some guidance and examples.
In my code, there are two divs. One is created using ng-repeat with an ng-click function to detect the clicked item. The other div below has CSS properties like
style="width:100px;
float:left;
margin-top:-30px;
margin-left:-100px;">
<img src="../../../path to image" embedded.
My goal is to apply the CSS properties from the second div to the ng-clicked item. What would be the best approach for this? Any examples provided would be helpful. Here's a snippet of my code:
<div ng-repeat="p in package ">
<div class="col-md-3 pack-align-lr cursor-poi ticket-top space-buy-pack active-pack " ng-click="testing(p)" >
<span class="pack">{{p}}</span><span class="spaces-font">Spaces</span>
</div>
<div style="width:100px;float:left;margin-top:-30px;margin-left:-100px;"><img src="../../../path to image" class="eventclass"/>
</div>
</div>
Thank you in advance.