fabiobiondi / angular-fullscreen

AngularJS HTML5 Fullscreen
213 stars 107 forks source link

go fullscreen on promise does not work #36

Closed rares-lupascu closed 9 years ago

rares-lupascu commented 9 years ago

Hi i am trying to go fullscreen after adding a css class to an element ... here is the code:

function MainCtrl($scope, Fullscreen) { $scope.isFullscreen = false; $scope.toggleFullScreen = function() { $animate.addClass($element, 'test').then(function() { $scope.$apply(function() { $scope.isFullscreen = !$scope.isFullscreen; }); }); } }

changing the property inside the promise call has no effect ... is there any solution to this?

thanks

cef62 commented 9 years ago

Hi @rarutu could you link a jsbin/plunker of your problem? Will be really useful to help you.