5
क्या मेरे टेम्पलेट से एक .helpers फ़ंक्शन पैरामीटर में पैरामीटर पास करना संभव है? मैं नीचे दिए गए कोड को आजमा रहा हूं लेकिन मुझे हमेशा नीचे दिखाए गए त्रुटि मिल रही है। धन्यवादउल्का .helpers फ़ंक्शन पैरामीटर
Template.documentUpdate.helpers({
getDocID: function(dCode){
return docsIDArray[dCode];
}
});
टेम्पलेट में:
<input type="hidden" id="docID" name="docID" value="{{getDocID(1) }}">
त्रुटि:
Exception from Tracker recompute function: Error: No such function: getDocID