fabiobiondi / angular-fullscreen

AngularJS HTML5 Fullscreen
214 stars 107 forks source link

Added "only-watched-property" attribute to directive #10

Closed sebastianoe closed 10 years ago

sebastianoe commented 10 years ago

Added possibility to set an only-watched-property attribute to the fullscreen directive, as going to fullscreen is not always desired when clicking on the element itself. Instead, only the watched property should trigger the fullscreen functionality.

Example:

<div fullscreen="isFullscreen" only-watched-property>Lorem ipsum...</div>

In this case, only the isFullscreen toggles the fullscreen, and not a click on the div.