-
-
Save wKoza/aa0245ab84025043d3a830ef7fdcc8fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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