Skip to content

Modules within closures #42

@brunofin

Description

@brunofin

Hello, first I want to say thanks for such awesome plugin.

I want to ask whether will it work correctly for modules that are created within JS closures. I tend to keep this pattern for my Angular modules, for example:

(function(angular) {
  var app = angular.module('dgDAO', []);

  app.service('API', ['$http', function($http) {
    /* Base API service */
    var API = {
      baseURL: '/api',
      describeAPI: function() {
        return $http({
          method: 'OPTIONS',
          url: API.baseURL
        })
      }
    }
    return API;
  }]);
})(window.angular);

Will it work with such module?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions