What I want to do:
<div class='duck@if (this.Model.quacker) { -noisy }'>quack</div>
t. either
<div class='duck'>quack</div>
or
<div class='duck-noisy'>quack</div>
However, I cannot get the syntax correctly. I tried @:-noisybut generated errors like
Make sure you have the appropriate "}" character for all the "{" characters inside this block
I also tried @: - noisy @, but the same error. What should I do?
source
share