Skip to content

Commit 145954e

Browse files
author
Louie Colgan
authored
fix(readme): ref -> @ref
1 parent febbfa0 commit 145954e

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
@@ -76,7 +76,7 @@ To directly use the service, you just need to inject it and observe the element(
7676
@using Blazor.IntersectionObserver
7777
@inject IntersectionObserverService ObserverService
7878
79-
<img ref="ImageElement" src="@(IsIntersecting ? "https://www.placecage.com/g/500/500" : "")"/>
79+
<img @ref="ImageElement" src="@(IsIntersecting ? "https://www.placecage.com/g/500/500" : "")"/>
8080
8181
@functions {
8282
public ElementReference ImageElement { get; set; }
@@ -186,7 +186,7 @@ This is a useful method to clean up observers when components are disposed of, i
186186
@implements IAsyncDisposable
187187
@inject IntersectionObserverService ObserverService
188188
189-
<div ref="NicolasCageRef"></div>
189+
<div @ref="NicolasCageRef"></div>
190190
191191
@functions {
192192
private IntersectionObserver Observer;

0 commit comments

Comments
 (0)