OneSide() {
            var item = document.getElementById('item1');
            item.open();
          }

          function closeSlidingItem(option, item) {
            var itemEle = document.getElementById(item);

            if (itemEle) {
              itemEle.close();
            }
          }
        </script>
      </ion-content>
    </ion-app>
  </body>
</html>
