title: Blazor 'Global' Parameter - passing between MainLayout.razor , NavMenu.razor, Counter.razor - back and forth
body: <p>Given a 'default' Blazor app - <strong>created using the Visual Studio 2019 Blazor server template</strong>. How do you create a <strong>GLOBAL</strong> object that is accessible from all the razor pages and components.</p>
  
  <p>How would you make the 'Current Count ' value - visible and 'dynamically' updated on the MainLayout, NavMenu, Index  pages?</p>
  
  <p><strong><p>Current count: @currentCount</p></strong></p>
  
  <ul>
  <li>Use <code>[Parameters]</code>? </li>
  <li>Use <code>[CascadingParameter]</code>?</li>
  <li>Create a Static Class ?</li>
  <li>What is the recommended approach in Blazor?</li>
  </ul>