ItSolutionStuff.com

Angular LowerCase Pipe Example | LowerCase Pipe in Angular

By Hardik Savani • May 2, 2024
Angular

Hi Dev

In this example, you will learn angular lowercase pipe example. this example will help you convert to lowercase in angular. This post will give you simple example of angular lowercase pipe input. i explained simply step by step angular input lowercase pipe example.

In this tutorial, i will provide you full example and how to use angular usercase pipe with string and input field. you can use it in angular 6, angular 7, angular 8, angular 9, angular 10, angular 11, angular 12, angular 13, angular 14, angular 15, angular 16 and angular 17 application.

I am not going to explain more and more description but i will simply give you syntax and some small examples so you can easily use it in your application.

Syntax:

{{ value_expression | lowercase }}

Lowercase Pipe Example

import { Component } from '@angular/core';

@Component({

selector: 'my-app',

template: `<div>

<p>{{ myString | lowercase }}</p>

</div>`,

styleUrls: [ './app.component.css' ]

})

export class AppComponent {

name = 'Angular';

myString = "This is ANGULAR Lowercase Pipe Example";

}

Output

this is angular lowercase pipe example

Lowercase Pipe with Input Example

import { Component } from '@angular/core';

@Component({

selector: 'my-app',

template: `<div>

<input (input) = "setDataOnChange($event.target.value)">

<p>{{ myString | lowercase }}</p>

</div>`,

styleUrls: [ './app.component.css' ]

})

export class AppComponent {

name = 'Angular';

myString = "";

setDataOnChange(value){

this.myString = value;

}

}

I hope it can help you...

Hardik Savani

Hardik Savani

I'm a full-stack developer, entrepreneur, and founder of ItSolutionStuff.com. Passionate about PHP, Laravel, JavaScript, and helping developers grow.

📺 Subscribe on YouTube

We Are Recommending You

Angular Slice Pipe Example | Slice Pipe in Angular

Read Now →

Angular Json Pipe Example | Json Pipe in Angular

Read Now →

Angular Percent Pipe Example | Percent Pipe in Angular

Read Now →

Angular Decimal Pipe Example | Number Pipe in Angular

Read Now →

Angular Date Pipe Example | Date Pipe in Angular

Read Now →

Angular Currency Pipe Example | Currency Pipe in Angular

Read Now →

How to Use Angular Pipe in Component Class?

Read Now →

How to Pass Multiple Parameters to Pipe in Angular?

Read Now →

Angular Nl2br Pipe Example

Read Now →

How to Create Custom Pipe in Angular 9/8?

Read Now →