/** Angular Imports */ import { Injectable } from '@angular/core' ; import { Resolve } from '@angular/router' ; /** rxjs Imports */ import { Observable } from 'rxjs' ; /** Custom Services */ import { UserService } from '../user.service' ; /** Custom Model */ import { User } from '../user.model' ; /**
 * View self service user data resolver.
 */ @ Injectable ( ) export class ViewUserResolver implements Resolve < Object > { param { UserService } userService constructor ( private userService ) { } returns { Observable < User > } resolve ( ) { return this . userService . getUser ( ) ; } }