GITLAB

SourceCode / smartzone-home

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • smartzone-home
  • src
  • app
  • dashboard
  • font.ts
  • 8672575a   แก้ไข api ใหม่ Browse Code »
    DESKTOP-P23T5P2\NewTeryEiEi
    2018-08-09 18:00:41 +0700  
font.ts 350 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import { PipeTransform, Pipe } from '@angular/core';

@Pipe ({
    name: 'font'
})
export class PontPipe implements PipeTransform {
    transform(value: string): string {
        if (value === null) {
            value = '';
        }
        if (value.length > 19) {
            return value.substr(19, 500);
        }
        return value;
    }
}