Skip to content

Commit 7971e8c

Browse files
Fix sample mistake
1 parent ea9429f commit 7971e8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ If you want to consume it outside of a ```cshtml``` based component, then you ca
7171

7272
```c#
7373
[Inject]
74-
protected ILogger<MyClass> logger;
74+
protected ILogger<MyClass> Logger {get;set;}
7575

7676
public void LogSomething()
7777
{
78-
logger.LogDebug("Inside LogSomething");
78+
Logger.LogDebug("Inside LogSomething");
7979
}
8080
```
8181

0 commit comments

Comments
 (0)