Pulse7
9/8/2017 - 7:18 PM

Modules and controller registration

angular.module("GithubViewer",[]) //register module GithubViewer
var githubViewer=angular.module("GithubViewer") // get registered module GithubViewer
githubViewer.controller("MainController",MainController) //standard syntax
githubViewer.controller("MainController",["$scope","$http",MainController]); 
//persist dependencies through minification syntax
// [dep,dep,...,controller]