Skip to content

Instantly share code, notes, and snippets.

@Qarun-Qadir-Bissoondial
Created March 30, 2020 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Qarun-Qadir-Bissoondial/c6a1ec361054f1c11e888cbe3050edbd to your computer and use it in GitHub Desktop.
Save Qarun-Qadir-Bissoondial/c6a1ec361054f1c11e888cbe3050edbd to your computer and use it in GitHub Desktop.
Pipes Demo - Percent Pipe
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