Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inside ng-repeater it is not working #7

Open
NirbhayK opened this issue May 20, 2016 · 3 comments
Open

Inside ng-repeater it is not working #7

NirbhayK opened this issue May 20, 2016 · 3 comments

Comments

@NirbhayK
Copy link

NirbhayK commented May 20, 2016

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

@igorlino
Copy link
Owner

igorlino commented Aug 24, 2016

@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.

@CristalT
Copy link

CristalT commented Aug 1, 2017

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

@Tkd-Alex
Copy link

Tkd-Alex commented Aug 16, 2019

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) }"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants