airfranceklm / ng-lazy-image

Angular directive for loading responsive image when container (which is preventing reflow) is in viewport.
http://afklm.github.io/ng-lazy-image/
MIT License
351 stars 64 forks source link

Fix wrong syntax usage #12

Closed mvhecke closed 9 years ago

mvhecke commented 9 years ago

In the current case it's not possible to use valid XHTML if you for example want to use options:

<div afkl-lazy-image-options='{"background": true}'></div>

The attribute content should have double quotes and by using $parse instead of angular.fromJson it allows more use cases.

coveralls commented 9 years ago

Coverage Status

Coverage remained the same at 91.51% when pulling 89659a254eca56793ef453fc42c45de2ea31b6af on Gamemaniak:master into 3fe850f64d5eb11ad2d8fd7eb05ace5405905230 on afklm:master.