Cannot access global variable to list in xml

android

#1

console.log(global.globalProductList);

[{
JS:   "_id": "5b7d535340c95455d5e8f2ef",
JS:   "activeFlag": true,
JS:   "productName": "karvalo",
JS:   "productNumber": "isbn654498",
JS:   "productCategoryList": "books",
JS:   "selectedProductIndex": 2,
JS:   "productImagePath": "~/images/products.png",
JS:   "packageQuantity": 10,
JS:   "quantityType": "pack",
JS:   "selectedQuantityTypeIndex": 4,
JS:   "dispatchType": "Set",
JS:   "selectedDispatchTypeIndex": 1,
JS:   "productRate": 2500,
JS:   "taxSlab": 12,
JS:   "taxSlabSelected": 2,
JS:   "rmcPercent": 3,
JS:   "_acl": {
JS:     "creator": "5b31c86a755ccb4b137a35be"
JS:   }
JS: }, {
JS:   "_id": "5b7d5385638cb132ebc3a5f1",
JS:   "activeFlag": true,
JS:   "productName": "plaster",
JS:   "productNumber": "p213",
JS:   "productCategoryList": "Arts and Crafts",
JS:   "selectedProductIndex": 7,

im gettings this, now on next line

viewModel.productList = global.globalProductList;

it is not listing . but when i read again from DB

viewModel.productList = entities;

it is listing in xml…