Skip to main content

Posts

Showing posts with the label AsyncPipe

What Is Angular LowerCasePipe?

Angular LowerCasePipe  - Angular provides a LowerCasePipe and it is used to transforms given a text to lowercase. The expression with lowercase - {{  value_expression  |  lowercase  }} The example as, import  {  Component  }  from   '@angular/core' ; @ Component ({    selector:   'lowercase-pipe' ,    template:   `<div>      <input type="text" #name (keyup)="changeLowerCase(name.value)">      <p>LowerCase - <h2>'{{value | lowercase}}'</h2>    </div>` }) export   class   LowerCasePipeComponent  {    value :  string ;    changeLowerCase ( value :  string ) {      this . value  =  value ;    } } For more detail kindly refer this link click…

What Are Inbuilt Pipes in Angular?

Angular defines various Pipes API lists  – That is called Inbuilt Pipes. 1)        DatePipe 2)        CurrencyPipe 3)        AsyncPipe 4)        DecimalPipe 5)        PercentPipe 6)        UpperCasePipe 7)        LowerCasePipe 8)        TitleCasePipe 9)        JsonPipe 10)    SlicePipe 11)    I18nSelectPipe 12)    And many more Similarly, you can also create a custom pipe (as per your needs) and configure in a module that is globally available in across angular apps. Angular DatePipe  - The DatePipe is used to format a date with the help of locale rules. {{  value_expression  |  date  [ :  format  [ :  timezon...