I'm ran across the following that I found to be strange. I'm not blocked by it but was curious if someone knew. When I use hasOwnProperty with a select option, it shows a value (A2F0C7) not in the dropdown as selected.. Can anyone share why this is happening? Here is the jsfiddle:
http://jsfiddle.net/stampyNY/2oeo8of9/1/
<div ng-controller="TestCtrl">
<select>
<option ng-repeat="(k,v) in items" ng-show="v.hasOwnProperty('test')" value="{{k}}">{{k}}</option>
</select>
var app = angular.module('app', []);
function TestCtrl($scope) {
$scope.items = {
'A2F0C7':{'secId':'12345', 'pos':'a20'},
'C8B3D1':{'pos':'b10'},
'WAM':{'test': 1, 'pos':'b10'}
};
}
Thank You!