Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 199 Bytes
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'addTwo'
})
export class AddTwoPipe implements PipeTransform {
transform(number: number): any {
return number + 2;
}
}