Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. @functions {
  2. ElementRef statDiv;
  3. string status = "";
  4.  
  5. void HandleEvent(MyEvent e) {
  6. status = e.time; // updates every second
  7. StateHasChanged(); // renders MonstrouslyDeepApp--every second!
  8. }
  9. }
  10.  
  11. @{
  12. Also_do_monstrous_business_calculations(42);
  13. }
  14.  
  15. <div class="main">
  16. <div class="main-toolbar">
  17. <span class="flex-grow" ref="statDiv"> @status </span>
  18. <span class="oi oi-cog"></span>
  19. </div>
  20.  
  21. <CascadingValue Value="@ModelRoot" Name="M">
  22. <MonstrouslyDeepApp M="@ModelRoot" />
  23. </CascadingValue>
  24. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement