Data transformation using ionic pipe

I try to use pipe in ionic project but can’t change data, It shows some error. please suggest a solution for this

pipe:
import {Pipe} from ‘@angular/core’;
@Pipe({
name: ‘statusupdater’
})
export class StatusUpdater {

transform(value, args) {
let status=value;
if(value==‘L’)
{
status=‘Landed’
}
if(value==‘A’)
{
status=‘Estimated’
}
if(value==‘C’)
{
status=‘Cancelled’
}

return status;

}
}

I try to use pipe in ionic project but can’t change data, It shows some error. please suggest a solution for this.

pipe:

@Pipe({
name: ‘statusupdater’
})
export class StatusUpdater {

transform(value, args) {
let status=value;
if(value==‘L’)
{
status=‘Landed’
}
if(value==‘A’)
{
status=‘Estimated’
}
if(value==‘C’)
{
status=‘Cancelled’
}

return status;

}
}
html:

{{item.status | statusupdator}}
Error:

Please edit your post, it is not very readable at the moment.
Use the </> button above the input field to format your code, command line output or error message (select the text first, then click the button or wrap it in ``` manually). Check the preview if it looks better. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.