Skip to content

Instantly share code, notes, and snippets.

Avatar

Gowri sankar.R gchokeen

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