Call function based on visability of an image
I'd like to call the function below base on the visibility of an image but i am unaware of how to do this. Could someone help please?
$scope.intro = function() {
var labelText = $scope.view.wdg['checkstart'].text;
var spokenText = labelText.substr(labelText.indexOf(" ") + 1);
$scope.app.speech.synthesizeSpeech({ 'text': spokenText });
}
Thanks
