Skip to content

Instantly share code, notes, and snippets.

View gchokeen's full-sized avatar

Gowri sankar.R gchokeen

View GitHub Profile
@gchokeen
gchokeen / full-address.ts
Created March 29, 2017 17:52
Angular 2 custom pipe for full address - Address is extracted from the Address Object
import {Pipe, PipeTransform} from '@angular/core';
interface Address{
street_address1?:string,
street_address2?:string,
city?:string,
state?:string,
country?:string,
zipcode?:string
};
@gchokeen
gchokeen / age.ts
Created March 29, 2017 18:38
Angular 2 custom pipe for age
import {Pipe, PipeTransform} from '@angular/core';
import * as moment from 'moment';
@Pipe({
name: 'age'
})
export class AgePipe implements PipeTransform {