This is my ctrl:
app.controller(\'ctrl\', function ($window, $scope) { $scope.initData = [ { firstName: \"John\", lastNa
delete data from local storage using JavaScript Here is your code without error passed.
use function for delete
function deleteRow(index){ dataList.splice(index, 1); console.log('====>', dataList) localStorage.setItem('items', JSON.stringify(dataList)); }