Created
April 9, 2020 13:38
-
-
Save Qarun-Qadir-Bissoondial/8fa741e99f94aa8e2f51f763a1b34101 to your computer and use it in GitHub Desktop.
Pipes Demo - Order Suffix Component Demo
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: 'app-custom-pipes', | |
template: ` | |
<p *ngFor = 'let number of numbers'>{{number | orderSuffix}}</p> | |
`, | |
styleUrls: [] | |
}) | |
export class CustomPipesComponent { | |
numbers: number[] = [1, 2, 3, 14, -128, 11]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment