Looking to create a pipe that limits the text box to only show the first 150 characters of the description. If the description is shorter than that, it should display the entire description followed by (...)
Currently working on this:
export class TeaserPipe implements PipeTransform {
transform(value: any, args?: any): any {
let teaser = "";
if(teaser.length >= 150){
}
return teaser;
}
}
Need more information about custom pipes to fully understand. Any insights would be appreciated!