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
  • 6d2f2c85   แก้ api comment Browse Code »
    trainee
    2018-07-12 09:47:09 +0700  
font.ts 351 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
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) {
            var text = value.substr(19, 35);

        }
        return value;
    }
}