Using videogular component i am trying to figure out a way how to hide my navbar when the vgControls are hidden using vgAutohide.
<vg-controls [vgAutohide]="true" [vgAutohideTime]="1.5">
Is there any easy way how to listen to this change?
I was trying to get the information from VgControlsHiddenService but was not successfull
console.log(this.controlsHidden.isHidden.subscribe(this.onHideControls.bind(this)));
I also tried with VgControlsHiddenService and it wouldn't work. I guess it is used for hidding the controls manually.
My solution for this problem was to use MutationObserver for checking when the
hide
class is added tovg-controls
element.This is my code: