/** Angular Imports */ import { Injectable } from '@angular/core' ; import { Resolve } from '@angular/router' ; /** rxjs Imports */ import { Observable } from 'rxjs' ; /** Custom Services */ import { NotificationsService } from './notifications.service' ; /**
 * Notifications data resolver.
 */ @ Injectable ( ) export class NotificationsResolver implements Resolve < Object > { param { NotificationsService } notificationsService constructor ( private notificationsService ) { } returns { Observable < any > } resolve ( ) { return this . notificationsService . getNotifications ( true ) ; } }