scopeblazorinline-code

blazor inclide code blocks glitching @{} errors then {} scope errors


When I don't use @ and just use {}, the scope breaks.

not using '@{}'

When I use @{} for the inline code, the scope works, but it errors because of the @

using '@{}'

Any suggestions? Sure looks like a glitch to me. Go Blazor!

Here's a third screenshot where the brackets aren't breaking scope. enter image description here


Solution

  • it actually worked with no brackets. The brackets were messing with the scope, when I thought they were required for in line code.

    no brackets for the win