Skip to content

Instantly share code, notes, and snippets.

@dgtlmonk
Last active August 29, 2015 14:03
Show Gist options
  • Save dgtlmonk/1fde21c553e357da36c5 to your computer and use it in GitHub Desktop.
Save dgtlmonk/1fde21c553e357da36c5 to your computer and use it in GitHub Desktop.
IIFE = http://toddmotto.com/minimal-angular-module-syntax-approach-using-an-iife/
Controller as = http://toddmotto.com/digging-into-angulars-controller-as-syntax/
Rethinking controller = http://toddmotto.com/rethinking-angular-js-controllers/
Opinionated Style Guide - http://toddmotto.com/opinionated-angular-js-styleguide-for-teams/
https://medium.com/@dickeyxxx/best-practices-for-building-angular-js-apps-266c1a4a6917
Gulp
http://lonelyproton.com/2014/02/How-this-site-is-built-with-gulp/
/**
* @ngInject
*/
function SomeService ($scope) {
}
angular
.module('app')
.factory('SomeService', SomeService);
//
Will produce
/**
* @ngInject
*/
function SomeService ($scope) {
}
// automated
SomeService.$inject = ['$scope'];
angular
.module('app')
.factory('SomeService', SomeService);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment