code: function getdata(err,response){
    			if(err){$scope.errmsg = "Server error, please try again.";console.log({error:err})}
  	  		if(response){
  	  			//console.log(response);
  				if (response.msg="OK"){
  					$scope.srvdbs = [];
  					$scope.add_db = false;
  					$scope.$emit('reloadmdb', 'reload');
  				}
  			};
    		}
docs: console.log(ce);