Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Baris Karaderili 1 post 71 karma points
    1 week ago
    Baris Karaderili
    0

    @ character error in attribute

    I'm using uk-parallax = "media: @l" in html.

    Example:

    However, when I run it, it has an error because of the character. What should I do. Thanks

  • Marc Love 274 posts 659 karma points
    1 week ago
    Marc Love
    1

    Hi Baris,

    I think this is because the @ character will be getting interpreted as the start of Razor code.

    Use a double @@ instead and this should work.

    Cheers,

    Marc

Please Sign in or register to post replies

Write your reply to:

Draft