I\'m just starting to learn Angular.js and I\'ve been looking at the project.js in the \"Wire up a Backend\" example on the Angular home page.
I\'m confused about th
Where are the controller functions called with their parameters?
Controller functions are instantiated with the ngController directive or if you have mentioned the controller during the route creation using $routeProvider. AngularJS does this tranperently for you and injects the parameters that you have defined on your controller using DI.
The DI works by matching the names (or some times order) of the parameters. So $scope would get the current scope, $http would get the http service