Questions tagged [angular-pipe]

Use for discussion of Angular 2+ pipes

An Angular pipe takes in data as input and transforms it to a desired output.

The first version of AngularJS, used the concept of filters to format the value of an expression for display to the user.

Angular (version 2 and on) introduced a similar concept, now called pipe.

671 questions
0
votes
2 answers

Angular 2 Currency Pipe

I am using currency pipe in angular2, current I am using {{price | currency:'USD':true:'1.2-2'}} which outputs $480,000.00 But The result I want is $480k, is this possible to achieve?
rishal
  • 3,230
  • 3
  • 22
  • 29
0
votes
0 answers

Return a pipe through another pipe

This is a follow-up question to Angular2 - assign pipe from a variable What I'm looking for is a way to use a pipe based on a variable name. I tried what Günter suggested and created a pipe that returns other pipes, but how would you return another…
Nicholas
  • 21
  • 3
0
votes
1 answer

how to define pipes in angular 2 template tag

I am using template tag for using functionality of angular 1 ng-repeat-start and ng-repeat-end.It works fine but do not understand how I declare pipes in it.So please help me.