This is the HTML code I have:
<tr ng-repeat="student in students track by $index">
//some code here
<button ng-click="remove(student)">Delete</button>
</td>
</tr>
Then, in my .js file, I've written this code to remove a student (not from local storage):
$scope.remove = function(student) {
var index = $scope.students.indexOf(student);
$scope.students.splice(index, 1);
}
Now, I'm wondering how I can access local storage from my JavaScript code and delete a specific student from there.