[Vuejs]-Vue.js: Passing anonymous functions in props object

0👍

I see js functions you have passed being printed in console log. I have updated your fiddle and put following logs in select2 compoent:

console.log(params.formatResult);
console.log(params.formatSelection);

Which prints following:

function (item) {return item.label;}
function (item) {return item.label;}

Leave a comment