Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Blazor Parameter reference with at symbol but within a text

$
0
0

How to make @Text act as Parameter but within a text?

For example, here

<div class="alert alert-@AlertClassType">some@Text</div>

some@Text is treated as a plain text,
but when string Text="thing" I'd expect 'something' in the result. I am clear, am I?

If I'd do

<div class="alert alert-@AlertClassType">some @Text</div>

it will "work" but that extra space before @ will also appear in the rendered content,
how to avoid that?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>