Skip to content

Commit 9f884fc

Browse files
author
Louie Colgan
authored
Merge pull request #16 from w8api/patch-1
Update README.md
2 parents 145954e + 7bce874 commit 9f884fc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ To directly use the service, you just need to inject it and observe the element(
7474

7575
```razor
7676
@using Blazor.IntersectionObserver
77-
@inject IntersectionObserverService ObserverService
77+
@inject IIntersectionObserverService ObserverService
7878
7979
<img @ref="ImageElement" src="@(IsIntersecting ? "https://www.placecage.com/g/500/500" : "")"/>
8080
@@ -184,7 +184,7 @@ This is a useful method to clean up observers when components are disposed of, i
184184
```razor
185185
@using Blazor.IntersectionObserver
186186
@implements IAsyncDisposable
187-
@inject IntersectionObserverService ObserverService
187+
@inject IIntersectionObserverService ObserverService
188188
189189
<div @ref="NicolasCageRef"></div>
190190

0 commit comments

Comments
 (0)