Hi, @Adrian_G.
here attached a simple project with demo. It is a little different approuch as @Suraj_Patil suggested but there are many ways the achieve this functionality and this is one possible option. Because I am not sure if the assigment will work inside the json defintion /possibly it work / but did not test my self. Here the relevant code;
////
$scope.populateModelList = function() {
$scope.my_json=[
//
{
display: "Ventil_3_sequneces",
value: "app/resources/Uploaded/Ventil_3_sequneces_publish.pvz"
},
{
display: "Anim Door",
value: "app/resources/Uploaded/anim_door2.pvz",
},
{
display: "Test Assembly",
value: "app/resources/Uploaded/test_asm.pvz"
}
];
$scope.mapArray=[]
$scope.mapArray["app/resources/Uploaded/Ventil_3_sequneces_publish.pvz"]="app/resources/Default/vu_alert1.svg"
$scope.mapArray["app/resources/Uploaded/anim_door2.pvz"]="app/resources/Default//vu_alert2.svg"
$scope.mapArray["app/resources/Uploaded/test_asm.pvz"]="app/resources/Default//vu_alert3.svg"
$scope.view.wdg['select-1']['list'] =$scope.my_json;
};
$scope.valueChange = function()
//this function is called in the change evetn of the list widget
{
$scope.setWidgetProp('image-1' ,'imgsrc',$scope.mapArray[$scope.view.wdg['select-1']['value']]);
}
/////////////////////////////////
$scope.$on('$ionicView.afterEnter', function() {$scope.populateModelList();
$scope.allWidgetToConsole();
});
//=============================================================================