In Angular's online free course, I see this:
app.controller('GalleryController', function(){
this.current = 0;
this.setCurrent = function(imageNumber){
this.current = imageNumber || 0;
};
});
but usually the $scope is passed as an argument to the controller... so, is it really needed?