I am just using the fantastic library that is angularJS. I am trying to get a simple window alert to come up on page load. This is the code I am using:
$scope.greet = function() {
($window.mockWindow || $window).alert('Hello World');
}
}
I am new to javascript generally and it seems I have made a mistake with this because it doesn't work:
Can anyone show me what it should be please? Thank you.
greet?