Reputation: 49
How can I replace + with template literals in this case please?
.....
filters:[
{ divName: 'CSS'
levels: [{key: 'GCSS', val:this.name + '(GCSS)'}]
}
],
...
Upvotes: 2
Views: 810
Reputation: 3127
try this:
`${this.name}(GCSS)`
The backticks are important.
Greetings, Flo
Upvotes: 6