zmon / Code-for-America-Projects-Hub

Help Brigade members find projects to work on. Promote multi-Brigade collaboration. Onboard new members. Encourage public contribution of ideas. Karma. Visualize scope for Code for America. Provide filtered and sorted card list of projects and ideas for development. The list should be available nation-wide and by city.
http://codeforkc.org/Code-for-America-Projects-Hub/
15 stars 13 forks source link

Switch back to minified js in app, but make sure they don't break testing #62

Open jstirnaman opened 9 years ago

jstirnaman commented 9 years ago

In develop branch, minified JS does not work with testing framework without a workaround. Add a workaround and switch the app back to minified.

jstirnaman commented 9 years ago

It looks like the pattern for supporting minification is generally to use the expanded signature for modules. e.g. //Controllers var myController = function(anyVariableName, $http) {} myController.$inject = ['$scope', '$http']

//Modules var myModule = angular.module('myModule', [ //Dependencies go here as an array of strings.])

//Services myModule.service('serviceName', ['$http', '$location', function($http, $location) {}])