8000 Not working without ng-repeat · Issue #44 · Pentiado/angular-lazy-img · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Not working without ng-repeat #44

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

Open
MrCalamitus opened this issue Jan 23, 2018 · 2 comments
Open

Not working without ng-repeat #44

MrCalamitus opened this issue Jan 23, 2018 · 2 comments

Comments

@MrCalamitus
Copy link

Code:

<div class="ot-panel-block"> <div class="post-image"> <img style="position:absolute;top:10px;right:10px;" lazy-img='{{restaurante.logo}}' alt="logo {{restaurante.name}}" /> <img lazy-img='{{restaurante.photo1}}' src="images/restaurante/principal.png" alt="" /> </div> </div>

Only apply lazyload in last img

@isfett
Copy link
isfett commented Feb 21, 2018

add ng-if="true" to your img tag. not the nice way, better would be a scope:true in return of the angular lazyImg directive

@MrCalamitus
Copy link
Author

Thaks for you response.

I inserted the image in object and applyed a ng-repeat and with those it works. It seems that only works with ng-repeat.

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

No branches or pull requests

2 participants
0