text: /* 
   * Api Test Módule
   */
  angular.module('generosService', [])
          .factory('generosService', ['$resource', '$q', '$log',
              function ($resource, $q, $log) {
                  return {
                      api: function (extra_route) {
                          if (!extra_route) {
                              extra_route = '';
                          }
                          return $resource('/assets/data/genres.json/', {}, {
                              query: {
                                  timeout: 15000
                              },
                              save: {
                                  timeout: 15000,
                                  method: 'POST'
                              },
                              get: {
                                  timeout: 15000,
                                  method: 'GET',
                                  isArray: true
                              }
                          });
                      },
                      getGeneros: function () {
                          //Service action with promise resolve (then)
                          var def = $q.defer();
                          this.api().get({}, {}, function (data) {
                              $log.warn('Api::data:: ');
                              def.resolve(data);
                          }, function (err) {
                              def.reject(err);
                          });
                          return def.promise;
                      },
                      testFunction: function () {
                          alert('testFunction');
                      }
                  };
              }]);
  
  
  
  