create a pipe like ionic g pipes max and after paste this code
import { Injectable, Pipe } from ‘@angular/core’;
/*
Generated class for the Max pipe.
See https://angular.io/docs/ts/latest/guide/pipes.html for more info on
Angular 2 Pipes.
*/ @Pipe({
name: ‘max’
}) @Injectable()
export class Max {
transform(val, args) {
if (val.length > 80){
return val.substring(0, 80)+’…’;
}else{
return val;
}
}
}
after this, import it in your page like :
import {Max} from ‘…/…/pipes/max’;
and make it like a pipes
pipes : [Max]
and in your html file
{{reponse.bio |max:80}}