Welcome to the JavaScript feedback portal. We’re happy you’re here! If you have feedback on how to improve the JavaScript, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Need to make data prefix in template compilation as optional.
import { Internationalization, compile } from '@syncfusion/ej2-base';
const data = { Numbers: [2,4,6] };
const a = 1;
const getDOMString = compile('<div>${if (data["Numbers"])}${for (item of data["Numbers"])}${if (itemIndex > 0)}<span> — </span>${/if}<span>${item}</span>${/for}${/if}</div>');
const output = getDOMString(data);