import { Injectable } from '@angular/core' ; import { BucketService } from 'src/app/services/bucket.service' ; import { IFruit } from 'src/app/interfaces/fruit.interface' ; @ Injectable ( { providedIn : 'root' , } ) export class EmployeeBucketService extends BucketService { constructor ( ) { super ( ) ; } readonly removeItem = this . updater ( ( state , _ ) => { alert ( 'Employees can not delete items' ) ; return state ; } ) ; }