Skip to content

Instantly share code, notes, and snippets.

@wKoza
Last active January 15, 2017 11:48
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save wKoza/85a6b4d987c49e4eaf42e2eb60cb2b4a to your computer and use it in GitHub Desktop.
import {Component} from '@angular/core';
@Component({
selector: 'pipe',
template: `
<h1>Les pipes</h1>
<hr />
<p>{{maDate}}</p>
<p>{{maDate | date:'d MMM y'}}</p>
<p>{{maDate | date:'d MMM y' | uppercase}}</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