When a page is loaded, I run the following function:
$scope.showTags = function(Id) {
$scope.toggleSelectedBlocks = function selectB(block) {
// There is a checkbox to be selected...
}
$scope.greetUser() {
console.log("GREETINGS WORLD!");
}
}
Next, I have another checkbox in the same controller with a different function:
$scope.handleClick = function(){
if($scope.myCheckbox == true){
$scope.greetUser();
}
}
An error message is displayed:
TypeError: undefined is not a function
at Scope.$scope.handleClick (....)
How can I resolve this issue?
Your assistance is greatly appreciated!