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
    Jan 09, 2019 @ 11:00
    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 (uSkinned.net) 432 posts 1671 karma points
    Jan 09, 2019 @ 12:24
    Marc Love (uSkinned.net)
    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