ANGULAR 15 : WHAT ARE PIPES
In this tutorial, we will see pipes in Angular 10, 1. What are pipes in Angular 10 So, basically Pipes Only changes the values of the property in the View .It does not apply the changes to the class object. It just Transform data before display. 2. Inbuilt Pipes There is a list of various built-in pipes in Angular 10. In this tutorial we have covered the lowercase pipe, uppercase pipe, titlecase pipe,currency pipe, datepipe, percentpipe etc. 3. Paramerterizing Pipes We can also parameterize the built-in pipes by passing the parameters to the pipes. eg. {{ 0.90 | currency: 'GBP':'code' }} 4. Chaining Pipes We can also use multiple pipes at the same time for a model value for displaying in the view. We can do this by chaining pipes. eg . {{ TestDate | date | uppercase}} Here in this example, we will first apply the date pipe on the TestDate model which is of type Date. After that whatever result is returned by the first pipe is passed to the second pipe. #Angular 8 #Angular 10 #Angular 12 #Angular 13 #Angular 15
Download
0 formatsNo download links available.