I'm currently working with functions that calculate values from input fields using ng-model.
$scope.EmployeeCompetenceObs = function () {
return $scope.user.percentEmployeesCompetentAfterTraining - $scope.user.percentEmployeesCompetentBeforeTraining;
}
My goal is to retrieve the value from this function and utilize it in another function:
$scope.EmployeeCompetenceAtt = function () {
return EmployeeCompetenceObs() - $scope.user.adjustmentFactorsEmployeeCompetence;
}
However, when I call {{EmployeeCompetenceAtt()}}, it shows up as undefined. What am I doing incorrectly?