first commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace Webshop.App.Components
|
||||
{
|
||||
public partial class InboxCounter
|
||||
{
|
||||
private int MessageCount;
|
||||
|
||||
[Inject]
|
||||
public ApplicationState? ApplicationState { get; set; }
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
MessageCount = new Random().Next(10);
|
||||
ApplicationState.NumberOfMessages = MessageCount;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user