Angular 10/9/8 Titlecase Pipe Example | Titlecase Pipe in Angular
Hi Dev
In this tutorial, i will show you angular titlecase pipe example. you can see angular camelcase to space pipe. This tutorial will give you simple example of angular pipe uppercase first letter. you will learn angular capitalize first letter. follow bellow step for angular capitalize first letter of every word.
In this tutorial i will provide you full example and how to use angular titlecase pipe for angular capitalize word or text. you can use it in angular 6, angular 7, angular 8, angular 9, angular 10 and angular 11 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 | titlecase }}
Titlecase Pipe Example
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `<div>
<p>{{ myString | titlecase }}</p>
<p>{{ myString2 | titlecase }}</p>
<p>{{ myString3 | titlecase }}</p>
<p>{{ myString4 | titlecase }}</p>
</div>`,
styleUrls: [ './app.component.css' ]
})
export class AppComponent {
name = 'Angular';
myString = "This IS ANGULAR titleCase pipe eXANPLE";
myString2 = "tutorial,example";
myString3 = "tutorial|example";
myString4 = "tutorial-example";
}
Output
This Is Angular Titlecase Pipe Exanple
Tutorial,example
Tutorial|example
Tutorial-example
I hope it can help you...

My name is Hardik Savani. I'm a full-stack developer, entrepreneur and owner of Aatman Infotech. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.
- Angular 10/9/8 Uppercase Pipe Example | Uppercase Pipe in Angular
- Angular 10/9/8 Slice Pipe Example | Slice Pipe in Angular
- Angular 10/9/8 Json Pipe Example | Json Pipe in Angular
- Angular 10/9/8 Percent Pipe Example | Percent Pipe in Angular
- Angular 10/9/8 Decimal Pipe Example | Number Pipe in Angular
- Angular 10/9/8 Date Pipe Example | Date Pipe in Angular
- Angular 10/9/8 Currency Pipe Example | Currency Pipe in Angular
- How to Use Angular Pipe in Component Class?
- How to Pass Multiple Parameters to Pipe in Angular?
- How to Create Custom Pipe in Angular 9/8?