Skip to content

Commit e4181ce

Browse files
mexxlogaretm
authored andcommitted
Update intersection-observer.md (#37)
1 parent d958638 commit e4181ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guide/intersection-observer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ const { observe, unobserve } = useIntersectionObserver(elem);
4242

4343
## Config
4444

45-
`useIntersectionRatio` function takes a required parameter that is a ref to the observed element and [optional config](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/IntersectionObserver#Parameters).
45+
`useIntersectionObserver` function takes a required parameter that is a ref to the observed element and [optional config](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/IntersectionObserver#Parameters).
4646

4747
```js
4848
import { ref } from '@vue/composition-api';
49-
import { useIntersectionRatio } from 'vue-use-web';
49+
import { useIntersectionObserver } from 'vue-use-web';
5050
const elem = ref(null);
5151

5252
const { isIntersecting } = useIntersectionObserver(elem, {

0 commit comments

Comments
 (0)