Skip to content

Instantly share code, notes, and snippets.

@vilmosioo
Created January 18, 2014 14:46
Show Gist options
  • Save vilmosioo/8491529 to your computer and use it in GitHub Desktop.
Save vilmosioo/8491529 to your computer and use it in GitHub Desktop.
Registering a controller in angular.
// How to register a controller normally
angular.module('ngApp').controller(/*controller code*/);
// How to register a controller after application bootstrap
$controllerProvider.register(/*controller code*/);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment