{{CategoryName}}
{{x.ItemName}}
{
getItem :
{
model:"items",
server:function($scope)
{
console.log("executing pre server function: accountKey :%s" ,$scope.AccountKey);
if(!$scope.AccountKey) {
console.log("AccountKey is empty.");
$scope.error = {message:"account key is empty",
type:"preServerData"
};
return false;
}
return true;
},
db:
{ query: "exec Admin_GetItemsV2 {{AccountKey}}, {{CategoryId}}"
},
post:function($scope)
{
console.log("executing post client data function");
if(!$scope.items) {
console.log("Item is empty.");
$scope.error = {message:"item is empty",
type:"postServerData"
};
return false;
}
return true;
}
}
}
{
preClientData:function($scope)
{
console.log("executing pre client data function");
},
postClientData:function($scope)
{
console.log("executing post client data function");
}
}