import { Pipe , PipeTransform } from '@angular/core' ; import { Observable } from 'rxjs' ; import { UserService } from '@core/services/index.service' ; import { UserModel } from '@shared/models/index.model' ; /**
 * User pipe
 */ @ Pipe ( { name : 'user' } ) export class UserPipe implements PipeTransform { param userService constructor ( private userService ) { } transform ( userId ) { return this . userService . findUserStatsById ( userId ) ; } }