Skip to content

Commit

Permalink
Update README.md (#549)
Browse files Browse the repository at this point in the history
Improve documentation so renderer doesn't throw an error in a strict mode like this:

```
Error: app/modules/components/example.component.html:7:61 - error TS2322: Type 'string' is not assignable to type 'number'.

7     <div class="img" [lazyLoad]="profile.url" offset="100"></div>
```
  • Loading branch information
ssuperczynski committed Jun 2, 2022
1 parent d594bbe commit dd170a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ Default: `0`
Number of px a image should be loaded before it is in view port

```html
<img [defaultImage]="someDefaultImage" [lazyLoad]="imageToLazyLoad" offset="100" />
<img [defaultImage]="someDefaultImage" [lazyLoad]="imageToLazyLoad" [offset]="100" />
```

##### scrollTarget (optional)
Expand Down

0 comments on commit dd170a5

Please sign in to comment.