How can i set true or false when my certain data is selected in angularjs?
example i have data
$scope.obj = {
'id': 1,
'id': 2,
'id': 3
}
<div ng-repeat="myData in ctrl.obj">
<input type="text" class="form-control" placeholder="Notes" ng-model="ctrl.myData ">
</div>
i want some help when i input data and that is equal to id = 1 it will set my value that is ID 1 else it will set empty, but when i go back to my last selected input box it will still display the value of my input box that is previously inputted. thanks to assist on my logic error :)