Y
Y
Yuri2016-05-23 11:02:43
Angular
Yuri, 2016-05-23 11:02:43

Plugin for angularjs fabiobiondi/fullscreen works only once. Why?

Hello. I use the plugin from fabiobiondi/fullscreen. The markup is as follows:

<button ng-click="goFullScreenViaWatcher()">fs</button>
<div id="fs3"  fullscreen="isFullScreen" only-watched-property >
  <!-- тут контент для растягивания на весь экран-->
</div>

The code:
$scope.isFullScreen = false;

        $scope.goFullScreenViaWatcher = function() {
            console.debug($scope.isFullScreen);
            $scope.isFullScreen = !$scope.isFullScreen;
        };

I enter the fullscreen mode only once by pressing the button. Nothing happens next, although $scope.isFullScreen changes state. Can anyone explain why this might be? I'm not familiar with Angular. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri, 2016-05-23
@modestguy

Thanks to all. Understood. The controller has set.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question