/** Angular Imports */ import { Injectable } from '@angular/core' ; import { Resolve , ActivatedRouteSnapshot } from '@angular/router' ; /** rxjs Imports */ import { Observable } from 'rxjs' ; /** Custom Services */ import { TasksService } from '../tasks.service' ; /**
 * Checker Inbox Detail resolver.
 */ @ Injectable ( ) export class GetCheckerInboxDetailResolver implements Resolve < Object > { param { TasksService } tasksService constructor ( private tasksService ) { } returns { Observable < any > } resolve ( route ) { const checkerId = route . paramMap . get ( 'id' ) ; return this . tasksService . getCheckerInboxDetail ( checkerId ) ; } }