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!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

2
Votes

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>&nbsp;&mdash;&nbsp;</span>${/if}<span>${item}</span>${/for}${/if}</div>'); const output = getDOMString(data);