I'm currently doing this, but error occurs when giving build
to the project:
function AddSelectOption(name, item) {
vm.item = {
name: item["name"],
[name]: item[name] //Erro nessa linha
};
vm.filters[name].push(vm.item);
}
//call AddSelectOption('statusID',$item)