Blame view

src/app/dashboard/font.ts 350 Bytes
8672575a   DESKTOP-P23T5P2\NewTeryEiEi   แก้ไข api ใหม่
1
import { PipeTransform, Pipe } from '@angular/core';
a1964257   trainee   เปลี่ยนคอมเม้น
2
3
4
5
6
7

@Pipe ({
    name: 'font'
})
export class PontPipe implements PipeTransform {
    transform(value: string): string {
8672575a   DESKTOP-P23T5P2\NewTeryEiEi   แก้ไข api ใหม่
8
        if (value === null) {
a1964257   trainee   เปลี่ยนคอมเม้น
9
10
11
            value = '';
        }
        if (value.length > 19) {
7c0732bd   trainee   แก้ย่อ
12
            return value.substr(19, 500);
a1964257   trainee   เปลี่ยนคอมเม้น
13
14
15
        }
        return value;
    }
8672575a   DESKTOP-P23T5P2\NewTeryEiEi   แก้ไข api ใหม่
16
}