Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

angular pipe first letter uppercase

{{ value_expression | titlecase }}
Comment

angular pipe to capitalize first letter

transform(value:string): string {
  let first = value.substr(0,1).toUpperCase();
  return first + value.substr(1); 
}
  
Comment

angular capitalize pipe

import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'capitalize'
})
export class CapitalizePipe implements PipeTransform {
  transform(value: string, ...args: string[]): string {
    return value.toLowerCase().charAt(0).toUpperCase() + value.toLowerCase().slice(1);
  }
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: js The equivalent of destructuring arrays and objects 
Javascript :: combine 2 data in column 
Javascript :: delete nth node from end 
Javascript :: send data to javscript 
Javascript :: math.factorial javascript 
Javascript :: currentContract.transferFrom is not a function 
Javascript :: jQuery - The noConflict() Method 
Javascript :: Ghost-Blog MySQL install was not found 
Javascript :: Using JSON As Parameter 
Javascript :: Return Instance Of Object 
Javascript :: jquery init dropdown 
Javascript :: aboutreact axios 
Javascript :: GridFs Schema 
Javascript :: Will yield function Person 
Javascript :: _.extend Example 
Javascript :: keep nav open when child item is active 
Javascript :: ticket 
Javascript :: select 2 is not working in nodejs 
Javascript :: Listen to custom event in Vue js 
Javascript :: getters javascript 
Javascript :: what is container in angular 
Javascript :: React clock via props 
Javascript :: prisma.db json 
Javascript :: nodejs split array into chunks 
Javascript :: difference between usecallback and usememo 
Javascript :: react-bootstrap-sweetalert is not running 
Javascript :: jquery show only first elements of table 
Javascript :: how to check my javascript code 
Javascript :: utm to lat long 
Javascript :: mongoose.js clause where 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =