Determination of function type is done now via angular.register