Skip to content

Commit

Permalink
fix(readme): ref -> @ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Louie Colgan authored Dec 6, 2020
1 parent febbfa0 commit 145954e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ To directly use the service, you just need to inject it and observe the element(
@using Blazor.IntersectionObserver
@inject IntersectionObserverService ObserverService
<img ref="ImageElement" src="@(IsIntersecting ? "https://www.placecage.com/g/500/500" : "")"/>
<img @ref="ImageElement" src="@(IsIntersecting ? "https://www.placecage.com/g/500/500" : "")"/>
@functions {
public ElementReference ImageElement { get; set; }
Expand Down Expand Up @@ -186,7 +186,7 @@ This is a useful method to clean up observers when components are disposed of, i
@implements IAsyncDisposable
@inject IntersectionObserverService ObserverService
<div ref="NicolasCageRef"></div>
<div @ref="NicolasCageRef"></div>
@functions {
private IntersectionObserver Observer;
Expand Down

0 comments on commit 145954e

Please sign in to comment.