diff --git a/app/templates/skeleton/Gruntfile.js b/app/templates/skeleton/Gruntfile.js index 444527f..2ddefc1 100644 --- a/app/templates/skeleton/Gruntfile.js +++ b/app/templates/skeleton/Gruntfile.js @@ -139,7 +139,7 @@ module.exports = function (grunt) { dest: 'temp/app.full.js' } }, - ngmin: { + ngAnnotate: { main: { src:'temp/app.full.js', dest: 'temp/app.full.js' @@ -207,7 +207,7 @@ module.exports = function (grunt) { }); - grunt.registerTask('build', ['jshint', 'clean:before', 'less', 'dom_munger', 'ngtemplates', 'cssmin', 'concat', 'ngmin', 'uglify', 'copy', 'htmlmin', 'imagemin', 'clean:after']); + grunt.registerTask('build', ['jshint', 'clean:before', 'less', 'dom_munger', 'ngtemplates', 'cssmin', 'concat', 'ngAnnotate', 'uglify', 'copy', 'htmlmin', 'imagemin', 'clean:after']); grunt.registerTask('run', ['dom_munger:read', 'jshint', 'connect', 'watch']); grunt.registerTask('test', ['dom_munger:read', 'karma']); grunt.registerTask('e2e', ['dom_munger:read', 'protractor']); diff --git a/app/templates/skeleton/app/common/controllers/common-controller.js b/app/templates/skeleton/app/common/controllers/common-controller.js index 5c9204c..3bb87e8 100644 --- a/app/templates/skeleton/app/common/controllers/common-controller.js +++ b/app/templates/skeleton/app/common/controllers/common-controller.js @@ -8,11 +8,10 @@ * @author: Tapas Jena * @copyright: Anitech Consulting Services Pvt Ltd. */ - angular.module('common').controller('commonController', ['$scope', function($scope) { + angular.module('common').controller('commonController', function($scope) { //TODO: Implement your controller logic here - }]); - + }); })(); diff --git a/app/templates/skeleton/app/common/services/common-service.js b/app/templates/skeleton/app/common/services/common-service.js index 85ffcd6..0ec7292 100644 --- a/app/templates/skeleton/app/common/services/common-service.js +++ b/app/templates/skeleton/app/common/services/common-service.js @@ -8,11 +8,10 @@ * @author: Tapas Jena * @copyright: Anitech Consulting Services Pvt Ltd. */ - angular.module('common').service('commonService', ['$http', '$q', function($http, $q) { + angular.module('common').service('commonService', function($http, $q) { //TODO: Implement your service logic here - }]); - + }); })(); diff --git a/app/templates/skeleton/app/help/controllers/help-controller.js b/app/templates/skeleton/app/help/controllers/help-controller.js index a13e626..a19a29c 100644 --- a/app/templates/skeleton/app/help/controllers/help-controller.js +++ b/app/templates/skeleton/app/help/controllers/help-controller.js @@ -8,10 +8,10 @@ * @author: Tapas Jena * @copyright: Anitech Consulting Services Pvt Ltd. */ - angular.module('help').controller('helpController', ['$scope', 'loadContent', function($scope, loadContent) { + angular.module('help').controller('helpController', function($scope, loadContent) { $scope.helpContentList = loadContent; - }]); + }); })(); diff --git a/app/templates/skeleton/app/help/services/help-service.js b/app/templates/skeleton/app/help/services/help-service.js index ab6530b..0c30068 100644 --- a/app/templates/skeleton/app/help/services/help-service.js +++ b/app/templates/skeleton/app/help/services/help-service.js @@ -8,7 +8,7 @@ * @author: Tapas Jena * @copyright: Anitech Consulting Services Pvt Ltd. */ - angular.module('help').service('helpService', ['$http', '$q', function($http, $q) { + angular.module('help').service('helpService', function($http, $q) { var helpContent = []; @@ -27,6 +27,6 @@ return deferred.promise; }; - }]); + }); })(); diff --git a/app/templates/skeleton/app/home/controllers/home-controller.js b/app/templates/skeleton/app/home/controllers/home-controller.js index 5bf3cdc..37dce9b 100644 --- a/app/templates/skeleton/app/home/controllers/home-controller.js +++ b/app/templates/skeleton/app/home/controllers/home-controller.js @@ -8,11 +8,11 @@ * @author: Tapas Jena * @copyright: Anitech Consulting Services Pvt Ltd. */ - angular.module('home').controller('homeController', ['$scope', 'homeService', function($scope, homeService) { + angular.module('home').controller('homeController', function($scope, homeService) { // get message from service $scope.message = homeService.getMessage(); - }]); + }); })(); diff --git a/app/templates/skeleton/app/home/services/home-service.js b/app/templates/skeleton/app/home/services/home-service.js index 1c12709..2497627 100644 --- a/app/templates/skeleton/app/home/services/home-service.js +++ b/app/templates/skeleton/app/home/services/home-service.js @@ -8,7 +8,7 @@ * @author: Tapas Jena * @copyright: Anitech Consulting Services Pvt Ltd. */ - angular.module('home').service('homeService', ['$http', '$q', function($http, $q) { + angular.module('home').service('homeService', function($http, $q) { var message = ''; @@ -20,6 +20,6 @@ return message; }; - }]); + }); })(); diff --git a/app/templates/skeleton/app/index.html b/app/templates/skeleton/app/index.html index fcac3d4..b1499b5 100644 --- a/app/templates/skeleton/app/index.html +++ b/app/templates/skeleton/app/index.html @@ -1,5 +1,5 @@ - +