我很新的angular.Need一些協助與例子。有問題申請第二個div的CSS點擊項目在第一個Div
我有兩個div。一個是用ng-repeat創建的,並使用ng-click來獲取點擊的項目。我有另一個div下面有CSS像
style="width:100px;
float:left;
margin-top:-30px;
margin-left:-100px;">
<img src="../../../path to image" in it.
現在我想將下面的Css div應用於ng單擊的項目。什麼是最好的方法呢?如有需要,請提供示例。我的代碼:
<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>
在此先感謝
哪裏是你的代碼? –
@ user1851003將它添加到您的問題。編輯您的問題 –