AngularJSã®ã³ã¼ããminify対å¿ã«ããããã®ãã¹ããã©ã¯ãã£ã¹
AngularJSã¯Dependency Injectionãããã®ã§æ¸ãæ¹ã«ãã£ã¦ã¯minifyããæã«ã³ã¼ããç ´æãã¦ãã¾ãå ´åããã。 ä¾ãã°ãã®ãããªã³ã¼ãã¯ç ´æãã。 var app = angular.module('app', []); app.controller('AppCtrl', function ($scope, $location, $interval, $timeout) { } ãã¹ããã©ã¯ãã£ã¹ã¯ãã。(ã ã¨æã) var app = angular.module('app', []); app.controller('AppCtrl', ['$scope', '$location', '$interval', '$timeout', function ($scope, $location, $interval, $timeout) { } é¢åã§ãfunctionã®å¼æ°ã®å®ç¾©ã®éããfunctionã®åã«è¨è¿°ãã。 ãã®ãã¨ã¯AngularJSå
¬å¼ãã¥ã¼ããªã¢ã«ã®「A Note on Minification」ã«æ¸ãã¦ãã£ã。 AngularJS: Tutorial: 5 - XHRs & Dependency Injection ãã¡ãã«ãåãè°è«ããã。 javascript - Angularjs minify best practice - Stack Overflow