import { Pipe , PipeTransform } from '@angular/core' ; @ Pipe ( { name : 'rad2deg' } ) export class Rad2DegPipe implements PipeTransform { param radians transform ( radians ) { return radians * ( 180 / Math . PI ) ; } }