0👍
Try Javascript string interpolation, something like title: 'this is title ${title}'
Important: you have to use backticks instead of quotes.
Mdn reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
Oh, and the double curly brace syntax works only in the templates. For all other places (js) you just need to include js variables. Possibly you’d have to use this.title
.
Source:stackexchange.com