text: var miControlador = miModulo.controller(
      "facturaViewController",
      ['$scope', '$http', '$routeParams', 'auth', 'promesasService',
  
          function ($scope, $http, $routeParams, auth, promesasService) {
              $scope.authStatus = auth.data.status;
              $scope.authUsername = auth.data.message;
              //--
              $scope.controller = "facturaViewController";
              //--
              $scope.id = $routeParams.id;
              //--
              $scope.fallo = false;
              $scope.hecho = false;
              $scope.falloMensaje = "";
              //--
              promesasService.ajaxGet('factura', $scope.id).then(function (response) {
                  $scope.id = response.data.message.id;
                  $scope.fecha = response.data.message.fecha;
                  $scope.iva = response.data.message.iva;
                  $scope.usuario = response.data.message.usuario_obj;
                  $scope.link_compra = response.data.message.link_compra;
  
              }, function () {
                  $scope.fallo = true;
                  $scope.falloMensaje = "No se ha podido acceder a los datos del servidor";
              });
              //--
              $scope.volver = function () {
                  window.history.back();
              };
  
          }
      ]
  );