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:
<span>{{item.status | statusupdator}}</span>
Error: