Question
how to re write this program, if i am click the button then image should blink.
how to re write this program, if i am click the button then image should blink.
$scope.blinkInterval = 0;
$scope.blinkImage = function(id) {
var current = $scope.view.wdg[id].visible;
if (current == undefined) { current = true;}
$scope.setWidgetProp(id, "visible", !current);
}
$scope.startBlink = function() {
$scope.blinkInterval = $interval($scope.blinkImage, 1000, 0, true, "3DImage-1");
}
$scope.stopBlink = function(id) {
$interval.cancel($scope.blinkInterval);
}
angular.element(document).ready($scope.startBlink);

