Created
March 29, 2020 23:53
-
-
Save Qarun-Qadir-Bissoondial/b283407ce0341d5a27ae0dcf546607f7 to your computer and use it in GitHub Desktop.
Pipes Demo - Text-based pipes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
@Component({ | |
selector: 'app-text-based-pipes', | |
template: ` | |
<h2>Text-based Pipes!</h2> | |
<p>This is our string: {{text}}</p> | |
<br> | |
<p>Uppercase Pipe -> {{text | uppercase}}</p> | |
<p>Lowercase Pipe -> {{text | lowercase}}</p> | |
<p>Titlecase Pipe -> {{text | titlecase}}</p> | |
`, | |
styleUrls: [] | |
}) | |
export class TextBasedPipesComponent { | |
text: string = 'My sTriNg to ChANge!'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment