I would like to know why angular js has this type of declaration: (example)
ab.setType = setType;
ab.getType = getType;
ab.getTitle = getTitle;
ab.calculateTimeOfWork = calculateTime;
ab.showCompleteListOfPromoters = showCompleteList;