import { Injectable } from '@angular/core' ; import { Observable , Subject } from 'rxjs' ; /**
 * Service for controlling ObliqueUI offcanvas composite features.
 */ @ Injectable ( { providedIn : 'root' } ) export class ObOffCanvasService { /**
     * Fire an `opened` event
     */ get opened ( ) : Observable < boolean > { return this . opened$ ; } get open ( ) : boolean { return this . isOpen ; } set open ( value ) { this . isOpen = value ; this . openedSubject . next ( this . isOpen ) ; } private readonly openedSubject : Subject < boolean > = new Subject < boolean > ( ) ; private readonly opened$ = this . openedSubject . asObservable ( ) ; private isOpen = false ; }