Skip to content

Commit b18d918

Browse files
author
Maciej Szałek
committed
Updated answer to question about parameterized pipe.
1 parent c07c9ab commit b18d918

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -714,13 +714,13 @@
714714
**[⬆ Back to Top](#table-of-contents)**
715715
716716
29. ### What is a parameterized pipe?
717-
A pipe can accept any number of optional parameters to fine-tune its output. The parameterized pipe can be created by declaring the pipe name with a colon ( : ) and then the parameter value. If the pipe accepts multiple parameters, separate the values with colons. Let's take a birthday example with a particular format(dd/mm/yyyy):
717+
A pipe can accept any number of optional parameters to fine-tune its output. The parameterized pipe can be created by declaring the pipe name with a colon ( : ) and then the parameter value. If the pipe accepts multiple parameters, separate the values with colons. Let's take a birthday example with a particular format(dd/MM/yyyy):
718718
```javascript
719719
import { Component } from '@angular/core';
720720
721721
@Component({
722722
selector: 'app-birthday',
723-
template: `<p>Birthday is {{ birthday | date:'dd/mm/yyyy'}}</p>` // 18/06/1987
723+
template: `<p>Birthday is {{ birthday | date:'dd/MM/yyyy'}}</p>` // 18/06/1987
724724
})
725725
export class BirthdayComponent {
726726
birthday = new Date(1987, 6, 18);

0 commit comments

Comments
 (0)