Created
January 18, 2014 14:46
-
-
Save vilmosioo/8491529 to your computer and use it in GitHub Desktop.
Registering a controller in angular.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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