Closed techabserve closed 4 years ago
How to use in_array in .hbs file
"<option value="{{this._id}}" {{#ifIn this._id userServicesList }}selected{{/if}}>{{this.serviceTitle}}"
You have to register a custom helper for that http://handlebarsjs.com/guide/#custom-helpers
How to use in_array in .hbs file
"<option value="{{this._id}}" {{#ifIn this._id userServicesList }}selected{{/if}}>{{this.serviceTitle}}"