method.type

method.type

by Salim BOUDRAA -
Number of replies: 0

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

Average of ratings: -