Skip to content

Commit

Permalink
docs: add imports to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ljbc1994 authored Sep 4, 2021
1 parent f0e8d37 commit de338ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Now you'll need to add the service to the service configuration.
#### WebAssembly (Program.cs)

```cs
using Ljbc1994.Blazor.IntersectionObserver;

public class Program
{
public static async Task Main(string[] args)
Expand All @@ -40,6 +42,8 @@ public class Program
#### Server (Startup.cs)

```cs
using Ljbc1994.Blazor.IntersectionObserver;

public class Startup {
public void ConfigureServices(IServiceCollection services)
{
Expand All @@ -56,7 +60,7 @@ object which contains the observer entry! Easy!
#### Component setup

```razor
@using Ljbc1994.Blazor.IntersectionObserver
@using Ljbc1994.Blazor.IntersectionObserver.Components
<IntersectionObserve>
<div @ref="context.Ref.Current">
Expand Down

0 comments on commit de338ad

Please sign in to comment.