2
I’m currently doing it this way, but it occurs error in giving build
in 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)
What is the name of the property you want to create?
– Jéf Bueno
@jbueno I edited the question.
– Matheus
@Matheus you want to add an item to a list?
– novic
@Virgilionovic That, where this item in one of its properties, has to be created dynamically.
– Matheus