Modules within closures
brunofin opened this issue · 1 comments
brunofin commented
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?
joakimbeng commented
I do think so, but haven't tried it myself