templates/interface/js/ngapimock.controller.js
function updateVariable(key, value) {
            variableService.addOrUpdate({key: key, value: value}, function () {
                vm.variables[key] = value;
                vm.variable = {
                    key: undefined,
                    value: undefined
                };
            });
        }
function updateVariable(key, value) {
            variableService.addOrUpdate({key: key, value: value}, function () {
                vm.variables[key] = value;
                vm.variable = {
                    key: undefined,
                    value: undefined
                };
            });
        }
function updateVariable ( key , value ) { variableService . addOrUpdate ( { key : key , value : value } , function ( ) { vm . variables [ key ] = value ; vm . variable = { key : undefined , value : undefined } ; } ) ; }
Update the given variable.
@param key The key.
@param value The value.
Update the given variable .