Skip to content

Instantly share code, notes, and snippets.

@diverted247
Created November 10, 2013 00:10
Show Gist options
  • Save diverted247/7391833 to your computer and use it in GitHub Desktop.
Save diverted247/7391833 to your computer and use it in GitHub Desktop.
The essence of the module API in Angular 1.2
var module = angular.module( name, [] )
module.config( [ name , function ])
module.controller( name , [ function ] )
module.directive( name , [ name , function(){ return function } ] )
module.filter( name , [ name , function(){ return function } ] )
module.value( name , value )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment