Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

method for convert first letter in uppercase in angular

app.filter('capitalize', function() {
  return function(token) {
      return token.charAt(0).toUpperCase() + token.slice(1);
   }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #method #convert #letter #uppercase #angular
ADD COMMENT
Topic
Name
8+5 =