import { Pipe, PipeTransform } from '@angular/core'; import { isno } from '../interface' @Pipe({name: 'isno'}) export class IsnoPipe implements PipeTransform { transform(value: boolean): string { if(value){ var x = 0 }else{ x=1 } return isno[x] } }