import { Injectable , TemplateRef } from '@angular/core' ; import { Subject } from 'rxjs' ; import Editor from '../../Editor' ; @ Injectable ( { providedIn : 'root' } ) export class MenuService { editor : Editor ; customMenuRefChange : Subject < TemplateRef < any > > = new Subject < TemplateRef < any > > ( ) ; setCustomMenuRef ( c ) { this . customMenuRefChange . next ( c ) ; } }