Closed rares-lupascu closed 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
Hi @rarutu could you link a jsbin/plunker of your problem? Will be really useful to help you.
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