I have these functions that do calculations of values from input fields using ng-model.
$scope.EmployeeCompetenceObs = function () {
return $scope.user.percentEmployeesCompetentAfterTraining - $scope.user.percentEmployeesCompetentBeforeTraining;
}
and what I am trying to do is get the value from that function and use it in another function:
$scope.EmployeeCompetenceAtt = function () {
return EmployeeCompetenceObs() - $scope.user.adjustmentFactorsEmployeeCompetence;
}
but when I call {{EmployeeCompetenceAtt()}} it comes up ad undefined...what am i doing wrong?
return $scope.EmployeeCompetenceObs()...and notreturn EmployeeCompetenceObs()...?