I have an array of objects which I am databinding -
$scope.records = [
{field: "Full Name", value: "Joe Hanigan", isVisible: true},
{field: "Age", value: "52 Years", isVisible: true},
{field: "Diagnosis", value: "Common Cold", isVisible: true},
{field: "Hospital Elum", value: "Alpha Lopus Epsum", isVisible: false},
{field: "Hospital Code", value: "CKD34-23", isVisible: false}
];
I am just displaying 'field' and 'isVisible' as a check box. I want to toggle the value of 'isVisisble' when a user checks/unchecks, the box in the browser.
How do I do that?