title: Angular, call service function from current service
body: <p>I have service called "sharedData" with some functions, how to call one of these functions from another such functions? here the code(marked trouble functions with "???????"): Thanks</p>
  
  <pre><code>service('sharedData', function ($http) {
      var refillList = [];
      var orderCart = {
          orderPlace: null,
          orderList: [],
          totalSum: 0
      };
  
      return {
          ....
          addRefill: function(value) {
             ...here some logic....
          },
  
          addOrder: function(order) {
              ...here some logic....
          },
          sendOrder: function(order, refill) {
              $http.get(config.urls.ajaxOrder + "{\"order\":{\"table_id\":" + orderCart.orderPlace + ",\"item_id\":" + order.id + ",\"amount\":1,\"action\":1}}").success(function(dataDetails) {
                  if (dataDetails.success) {
                      if (refill == 1) {
                          // Filling refill list
                          ??????????????????this.addRefill(order);?????????
                      }
                      // Filling order cart
                      ?????????this.addOrder(order);?????????????
                  }
              });
          }
      };
  }).
  </code></pre>