Skip to content

Commit b957cc8

Browse files
authored
Update README.md
1 parent 2e6e183 commit b957cc8

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -112,20 +112,7 @@ The `options`-attribute takes an object with the following properties:
112112
* resize: boolean;
113113
* initLayout: boolean;
114114

115-
### imagesLoaded
116-
>**NOTE:** Will throw error if global `imagesLoaded` not available.
117-
118-
Delay adding of brick until all images in brick are loaded.
119-
To activate imagesLoaded set `useImagesLoaded` to `true`.
120-
```html
121-
<masonry [useImagesLoaded]="true"></masonry>
122-
```
123-
index.html:
124-
```html
125-
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.imagesloaded/4.1.1/imagesloaded.pkgd.min.js"></script>
126-
```
127-
128-
### Examples
115+
#### Examples
129116

130117
Inline object:
131118
```html
@@ -144,6 +131,19 @@ public myOptions: MasonryOptions = {
144131
<masonry [options]="myOptions"></masonry>
145132
```
146133

134+
### imagesLoaded
135+
>**NOTE:** Will throw error if global `imagesLoaded` not available.
136+
137+
Delay adding of brick until all images in brick are loaded.
138+
To activate imagesLoaded set `useImagesLoaded` to `true`.
139+
```html
140+
<masonry [useImagesLoaded]="true"></masonry>
141+
```
142+
index.html:
143+
```html
144+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.imagesloaded/4.1.1/imagesloaded.pkgd.min.js"></script>
145+
```
146+
147147
## Events
148148
### layoutComplete: `EventEmitter<any[]>`
149149
Triggered after a layout and all positioning transitions have completed.

0 commit comments

Comments
 (0)