I want to show edit/delete buttons when local storage is not empty.

in my view.html I try:

```
<div ng-controller="MainController">     
     <button ng-disabled="localStorage.getItem('wimmtkey') !== null"  > Edit</button>
</div>

```

then in `review.controller.js`
I have this function:

```
function submit() {  
    if($rootScope.name!=null)    {
        var temp={
            "name":$rootScope.name,
             "surname":$rootScope.surname,
             "email":$rootScope.email
        }
        $scope.localArray.push(temp);
        localStorageService.set("wimmtkey", $scope.localArray);
        $scope.obtained_array = localStorageService.get("wimmtkey"); 

        var Results = UniversalService.PostReview(JSON.stringify(JSONObject));
        }
    }

```

but the button is shown always visible even when I go incognito. What problem could it be?