2015-07-27 22:12:30 -07:00
p.location-badge.
exported from <a href='../pipes'>angular2/pipes</a>
2015-08-11 17:09:57 -07:00
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.34/modules/angular2/src/pipes/number_pipe.ts#L92-L111">angular2/src/pipes/number_pipe.ts (line 92)</a>
2015-07-27 22:12:30 -07:00
:markdown
Formats a number as local percent.
# Usage
expression | percent[:digitInfo]
For more information about `digitInfo` see <a href='DecimalPipe-class.html'><code>DecimalPipe</code></a>
2015-07-28 13:28:47 -07:00
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation CONST
pre.prettyprint
code.
@CONST()
2015-08-11 17:09:57 -07:00
.l-sub-section
h3.annotation Pipe
pre.prettyprint
code.
@Pipe({name: 'percent'})
.l-sub-section
h3.annotation Injectable
pre.prettyprint
code.
@Injectable()
2015-07-27 22:12:30 -07:00
.l-main-section
h2 Members
.l-sub-section
h3 transform
pre.prettyprint
code.
transform(value: any, args: any[])
:markdown