I create two global variables
such as var DiscountRef = {};var shareDetail = [];
when the user add the form I store all the values in DiscountRef variable such as
RefValue = {Mobile:9876543210,Quantity:3}
$scope.shareDetail = Object.Keys(RefValue);//I try Object.entries also
when I want to display the data in the table
{{shareDetail}}
<div ng-repeat="share in shareDetail">
{{share.Mobile}}
{{share.Quantity}}
</div>
Its displaying empty array
I also try this
<div ng-repeat="(key, value) in shareDetail">
{{key}} : {{value}}
</div>
It will get the result.how can I access particular key value pairs such as MobileNo:9876543210 & Quantity:3