@inject NotificationManager Notification
@implements IDisposable

<div>
  @foreach (var msg in Notification.Messages)
  {
    <p class="alert alert-success">@msg</p>
  }
</div>

@code {
  protected override void OnInitialized()
  {
    Notification.OnChange += StateHasChanged;
  }

  public void Dispose()
  {
    Notification.OnChange -= StateHasChanged;
  }
}
