import { Component } from '@angular/core' ; import { CreateNewNoteDialogComponent } from '../create-new-note-dialog/create-new-note-dialog.component' ; import { Dialog } from '../../../ui/dialog' ; @ Component ( { selector : 'gd-note-finder' , templateUrl : './note-finder.component.html' , styleUrls : [ './note-finder.component.scss' ] , } ) export class NoteFinderComponent { constructor ( private dialog ) { } openCreateNewNoteDialog ( ) { this . dialog . open < CreateNewNoteDialogComponent > ( CreateNewNoteDialogComponent , { width : '460px' , disableBackdropClickClose : true , } ) ; } }