Angular6 open/show component by service
问题 I built an angular component to use as a dialog for my app (e.g to show application errors) and a dialog- service to open/show that dialog from other components. dialog.component.html <kendo-dialog *ngIf="opened"> <div> Some Content </div> </kendo-dialog> dialog.compontent.ts import { Component, OnInit } from '@angular/core'; import { Dialog } from './dialog'; // Model @Component({ selector: 'dialog', templateUrl: './dialog.component.html', styleUrls: ['./dialog.component.scss'] }) export