$scope.ptArray={m1 : $scope.somevalue1,
m2 : $scope.somevalue2,
m3 : $scope.somevalue3};
$scope.errMsg={m1 : 'msg1',
m2 : 'msg2',
m3 : 'msg3'};
if($scope.ptArray.this==""){
alert($scope.errMsg.this);
}
'this' is not functioning correctly in this context. Substituting 'this' with m1, m2, or m3 will work, but only for that specific variable. What should be used in place of this?