The program consists of two buttons to increase and decrease the number of store of value

I need a program that includes two buttons to increase and decrease the number and display it

As well as storage and display number after close and open app

for storage data you can use angular-local-storage for get https://github.com/grevory/angular-local-storage

for load data use $scope.storageValue = localStorageService.get('StoreData');

for save data use localStorageService.set('StoreData',$scope.storageValue);

full code:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">

    <link href="lib/ionic/css/ionic.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">

    <!-- ionic/angularjs js -->
    <script src="lib/ionic/js/ionic.bundle.js"></script>

    <!-- cordova script (this will be a 404 during development) -->
    <script src="cordova.js"></script>

    <!-- save and load in Local -->
    <script src="js/angular-local-storage.min.js"></script>
    <script>
    angular.module('app', ['ionic','LocalStorageModule'])
        .controller('AppCtrl', function($scope, localStorageService) {
              // save and load
              $scope.storageValue = localStorageService.get('StoreData');
              // add salavat
              $scope.add=function(){
                  $scope.storageValue++;
                  localStorageService.set('StoreData',$scope.storageValue);
              }
              // sub salavat
              $scope.sub=function(){
                  $scope.storageValue--;
                  localStorageService.set('StoreData',$scope.storageValue);
              }
        })
    </script>
  </head>

  <body ng-app="app">
    <ion-content>
        <div style="height:100%; text-align:center" ng-controller="AppCtrl">
            <div class="item item-icon-left" href="#">
                <span>Number : {{storageValue}}</span> <br>
                <button class="button button-positive" ng-click="add()">
                  +
                </button>
                <button class="button button-positive" ng-click="sub()">
                  -
                </button>
            </div>
        </div>
  </ion-content>
  </body>
</html>

pic

ionic