angular-elevatezoom-plus icon indicating copy to clipboard operation
angular-elevatezoom-plus copied to clipboard

Inside ng-repeater it is not working

Open NirbhayK opened this issue 9 years ago • 3 comments

OUTPUT:

<img ez-plus="" ezp-model="{thumb:'http://xyz/images/product/M/1189_M1.jpg', small:'http://xyz/images/product/M/1189_M1.jpg', large:'http://xyz/images/product/M/1189_M1.jpg'}" ezp-options="{scrollZoom: true,  initial: 'small'}" class="ng-isolate-scope" src="{{product.productImageUrl}}" data-zoom-image="{{product.productImageUrl}}"> 

CODE

 <tr ng-repeat="product in productList"  >
        <td> 
            <table class="tableclass">
                <tr><td><img  ez-plus 
    ezp-model="{thumb:'{{product.productImageUrl}}', small:'{{product.productImageUrl}}', large:'{{product.productImageUrl}}'}"
    ezp-options="{scrollZoom: true,  initial: 'small'}" ></img>

    </td></tr>
                <tr><td style="height: 65px;">{{product.title}} {{product.size}}</td></tr>

            </table>
        </td>     
</tr>  

Where XYZ is my domain

NirbhayK avatar May 20 '16 05:05 NirbhayK

@NirbhayK may I bother you if you could please create a working example , preferably creating a question at stackoverflow http://stackoverflow.com/ (they offer the new feature: code snippet)

There is a probability of much more people can help in stackoverflow. I currently lack time for issues, so I hope others can help.

igorlino avatar Aug 24 '16 15:08 igorlino

You must remove {{ }} from the object items values. You might have something like this: {thumb: product.productImageUrl, small: product.productImageUrl, large: product.productImageUrl}

CristalT avatar Aug 01 '17 00:08 CristalT

Not work also for me in ng-repeat


EDIT Fixed associating a single ZoomContainer for each image

ezp-options="{ scrollZoom: true,  initial: 'small', container: 'Container-' + array.indexOf(Item) }"

Tkd-Alex avatar Aug 16 '19 18:08 Tkd-Alex