Posts

Showing posts with the label pipe

Pipes in Angular for Ionic

Image
Definition: Pipes are a useful feature in Angular.  They are a simple way to transform values in an Angular template. There are some built-in pipes available in angular. You can also create own pipes. A pipe takes in a value or values and then returns a value. Predefined Pipes: Lower case pipe - msg :  String  =  "This example for case pipes" {{ msg  |  lowercase }} Output :   this example for case pipes --------------------------------------------------------------------------------------- Upper case pipe - {{ msg  |  uppercase }} Output:    THIS EXAMPLE FOR CASE PIPES --------------------------------------------------------------------------------------- Title case pipe - Syntax:  {{ value_expression | titlecase}} {{ msg  |  titlecase }} Output:    This Example For Case Pipes ----------------------------------------------------------------...