2019-09-19 10:40:16 +09:00
|
|
|
import { Injectable } from '@angular/core';
|
2019-09-19 18:22:13 +09:00
|
|
|
import { AppNotificationService } from './notification.service';
|
2019-09-19 17:03:39 +09:00
|
|
|
|
2019-09-19 10:40:16 +09:00
|
|
|
@Injectable()
|
|
|
|
export class AppService {
|
2019-09-19 18:22:13 +09:00
|
|
|
constructor(private appNotificationService: AppNotificationService) {}
|
2019-09-19 10:40:16 +09:00
|
|
|
|
|
|
|
public postInit(): Promise<void> {
|
|
|
|
return new Promise<void>((resolve, reject) => {
|
2019-09-19 18:22:13 +09:00
|
|
|
this.appNotificationService.subscribe();
|
2019-09-19 10:40:16 +09:00
|
|
|
resolve();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|