Answers for "pipe in angular 12 definition"

0

pipe in angular

//app.html:
<h1>pipe in angular</h1>
<h3>{{pipe | lowercase}}</h3>
<h3>{{pipe | uppercase}}</h3>
<h3>{{pipe | titlecase}}</h3>
<h3>{{pipe | slice:1:10}}</h3>
<h3>{{today | date:'fullDate'}}</h3>
<h3>{{val | currency:'INR'}}</h3>
<h3>{{val | currency:'USD'}}</h3>
<h3>{{val | currency:'CAD'}}</h3>

//app.component.ts:
 pipe = 'Hello World!';
  today=Date.now()
  val=48
Posted by: Guest on March-03-2022

Browse Popular Code Answers by Language