import { Injectable } from '@angular/core' ; import { Resolve , ActivatedRouteSnapshot } from '@angular/router' ; import { RequestsService } from "../../services/requests/requests.service" ; import { UsersUtilsService } from "../../services/users/users-utils.service" ; @ Injectable ( ) export class PendingApprovalResolve implements Resolve < any > { constructor ( private requestsService , private userUtils ) { } resolve ( route ) { return this . userUtils . getRequestsPendingApproval ( ) ; } }