import { Injectable } from '@angular/core' ; import { ThyAvatarService } from 'ngx-tethys' ; import { SafeHtml , DomSanitizer } from '@angular/platform-browser' ; @ Injectable ( ) export class CustomAvatarService extends ThyAvatarService { constructor ( private domSanitizer ) { super ( ) ; } deprecated avatarSrcTransform ( src , size ) { return `assets/images/${ src }` ; } srcTransform ( src , size ) { return `assets/images/${ src }` ; } nameTransform ( name ) { return `New ${ name }` ; } }