Commit 0e71443d authored by wangqinghua's avatar wangqinghua

bug update

parent efc8644b
import {Pipe, PipeTransform} from '@angular/core';
@Pipe({
name: 'stringSlice',
})
export class StringSlicePipe implements PipeTransform {
transform(value: string, len: number,index:number) {
let str;
str = value.length > len ? value.slice(0, index) + "..." : value;
return str;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment