Unexpected identifier in x-data #3406
Answered
by
ekwoka
RicardoRamirezR
asked this question in
1. Help
-
Hi there, Given the following code: <div x-data="{ id: 35020, name: '{{ $name }}' }"> All works well if Any idea will be much appreciated |
Beta Was this translation helpful? Give feedback.
Answered by
ekwoka
Feb 7, 2023
Replies: 1 comment 1 reply
-
use backticks instead, or if your templating engine has it, an |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
RicardoRamirezR
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
use backticks instead, or if your templating engine has it, an
escape
filter