Skip to content

Commit e641e16

Browse files
committed
document import statement
1 parent 47e28ac commit e641e16

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ Infinite Ajax Scroll works on a container with item elements which get appended.
5656
Now you can configure Infinite Ajax Scroll:
5757

5858
```javascript
59+
// import if you use the NPM package
60+
import InfiniteAjaxScroll from '@webcreate/infinite-ajax-scroll';
61+
5962
let ias = new InfiniteAjaxScroll('.container', {
6063
item: '.item',
6164
next: '.next',

docs/getting-started.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ Given the above definitions, our minimal markup would be similar to this:
3737
Given the above markup, we need to instruct Infinite Ajax Scroll which element is what.
3838

3939
```javascript
40+
// import if you use the NPM package
41+
import InfiniteAjaxScroll from '@webcreate/infinite-ajax-scroll';
42+
4043
let ias = new InfiniteAjaxScroll('.container', {
4144
item: '.item',
4245
next: '.next',

0 commit comments

Comments
 (0)