diff src/app/app.module.ts @ 493:7f9fb84816b9

Introduce a singleton / service for communicating errors / or other notifications (there aren't any yet) - using MdSnackBar internally.
author Lucas Thompson <dev@lucas.im>
date Thu, 06 Jul 2017 19:47:18 +0100
parents 64ed45a0bad3
children c39df81c4dae
line wrap: on
line diff
--- a/src/app/app.module.ts	Thu Jul 06 12:52:24 2017 +0100
+++ b/src/app/app.module.ts	Thu Jul 06 19:47:18 2017 +0100
@@ -42,6 +42,7 @@
   ActionTrayComponent
 } from './actions/action-tray.component';
 import {RecordRtcMediaRecorder} from './services/audio-recorder/RecordRtcMediaRecorder';
+import {NotificationService} from './services/notifications/notifications.service';
 
 export function createAudioContext(): AudioContext {
   return new (
@@ -163,7 +164,8 @@
     {provide: 'UrlResourceLifetimeManager', useFactory: createUrlResourceManager},
     {provide: 'ResourceReader', useFactory: createResourceReader},
     {provide: 'DimensionObservable', useFactory: createWindowDimensionObservable},
-    RenderLoopService
+    RenderLoopService,
+    NotificationService
   ],
   bootstrap: [AppComponent]
 })