0.1.7 • Published 11 years ago

ngbrowserify v0.1.7

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

ngbrowserify

Angular function injection to array injection transform for browserify.

browserify -t ngbrowserify main.js -o main.bundle.js

Or use it from the command-line instead of ngmin:

ngbmin < input.js > output.js

Example input:

angular.module('m').factory('f', 
    function($rootScope, $http) {
        // code    
    });

Output:

angular.module('m').factory('f', 
    ['$rootScope', '$http', function($rootScope, $http) {
        // code    
    }]);

alternate syntax

Named function expressions that end with '$ng' will always be transformed.

var factory = function myModule$ng($scope, $http) {
};

angular.module('m').factory('f', factory);
var factory = [$scope, $http, function myModule$ng($scope, $http) {
}];

angular.module('m').factory('f', factory);
0.1.7

11 years ago

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago