Created
March 30, 2020 00:00
-
-
Save Qarun-Qadir-Bissoondial/c6a1ec361054f1c11e888cbe3050edbd to your computer and use it in GitHub Desktop.
Pipes Demo - Percent Pipe
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-percent-pipe', | |
template: ` | |
<p>Our number for percent: {{percent}}</p> | |
<p>Percent Pipe: {{percent | percent}}</p> | |
`, | |
styleUrls: [] | |
}) | |
export class PercentPipeComponent { | |
percent: number = 0.12; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment