I would like to understand from where is the variable method of the following function:
angular.forEach(enrollmentMethods, function (method) {
if (selfEnrolWSAvailable && method.type === 'self') {
$Scope.selfEnrolInstances.push (method);
} else if (guestWSAvailable && method.type === 'guest') {
isGuestEnabled = true;
}
});
which is in the file /www/core/components/courses/controllers/viewresults.js gets its values, espacially, method.type ?
thank you