Instantly share code, notes, and snippets.

@wKoza /pipe.component.ts Secret
Created Jan 15, 2017

Embed
What would you like to do?
import {Component} from '@angular/core';
@Component({
selector: 'pipe',
template: `
<h1>Les pipes</h1>
<hr />
<p>{{maDate}}</p>
<p>{{maDate | date:'d MMM y'}}</p>
`
})
export class PipeComponent {
maDate:Date=new Date('2016-09-25');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment