You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using yeoman-generator, which I need to pass a array of value to the template file. for example I want to pass a array of text values to the template.
public options = [<%= array.map(value => `'${value}'`).join(',') %>] ;
Please keep this repository for generator related issues only.
Post others questions to stackoverflow or the related project, in this case ejs.
I am using yeoman-generator, which I need to pass a array of value to the template file. for example I want to pass a array of text values to the template.
in the .ts file, i define a variable which received the passed array.
public options = <%= array %> ;
My expected result ispublic options = ['abc','cde','efg'] ;
however the resulted output ispublic options = abc,cde,efg ;
how would I resolve this problem ?The text was updated successfully, but these errors were encountered: