Filters for convert text to camel case in Angular Js

05-03-2017 angularjs camelcase filters

By using filters convert text to camel case.

.filter('TextCamelCase', function() {
  return function(input) {
    input = input || '';
    return input.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});


You might also like:

Time Sorting Ascending or Descending Order in Javascript
19-07-2017 Javascript ascending order descending order
How to insert bulk information into database in single query execution
18-03-2017 insert sql bulk database
How to get current date and time (yyyy-mm-dd H:i:s) using javascript
09-03-2017 javascript date time
Email validation regular expression in javascript
22-02-2017 email validation regex
Send Mail in Node Js
21-02-2017 node js mail npm module