diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 68868de2b..2f8e1adf4 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -30,6 +30,7 @@ import { environment } from '../environments/environment'; import { ChartItemComponent } from './charts/chart-item/chart-item.component'; import { ChartComponent } from './charts/chart/chart.component'; import { FolderListComponent } from './lists/folder-list/folder-list.component'; +import { DialogComponent } from './dialog/dialog.component'; @NgModule({ declarations: [ @@ -42,6 +43,7 @@ import { FolderListComponent } from './lists/folder-list/folder-list.component'; ChartComponent, ChartItemComponent, FolderListComponent, + DialogComponent, ], imports: [ BrowserModule, diff --git a/src/app/dialog/dialog.component.html b/src/app/dialog/dialog.component.html new file mode 100644 index 000000000..d883ebfb6 --- /dev/null +++ b/src/app/dialog/dialog.component.html @@ -0,0 +1,4 @@ +

Error

+
+ {{data.message}} +
\ No newline at end of file diff --git a/src/app/dialog/dialog.component.scss b/src/app/dialog/dialog.component.scss new file mode 100644 index 000000000..e69de29bb diff --git a/src/app/dialog/dialog.component.spec.ts b/src/app/dialog/dialog.component.spec.ts new file mode 100644 index 000000000..a6bce8db3 --- /dev/null +++ b/src/app/dialog/dialog.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { DialogComponent } from './dialog.component'; + +describe('DialogComponent', () => { + let component: DialogComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ DialogComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(DialogComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/dialog/dialog.component.ts b/src/app/dialog/dialog.component.ts new file mode 100644 index 000000000..0e7635f6d --- /dev/null +++ b/src/app/dialog/dialog.component.ts @@ -0,0 +1,21 @@ +import { Component, OnInit, Inject } from '@angular/core'; +import { MAT_DIALOG_DATA } from '@angular/material/dialog'; +import { MessageService } from '../services/message.service'; + +export interface DialogData { + message: 'example message'; +} + +@Component({ + selector: 'app-dialog', + templateUrl: './dialog.component.html', + styleUrls: ['./dialog.component.scss'] +}) +export class DialogComponent implements OnInit { + + constructor(public messageService: MessageService) { } + + ngOnInit(): void { + } + +}