Filters for convert text to camel case in Angular Js


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:

Convert and download html to pdf without saving file

28-10-2018 node js convert html to pdf pdf download pdf without saving

How to submit form using javascript or jquery.

16-04-2017 javascript jquery submit form

How to use request module in node js

16-03-2017 request module node js

Using slice remove last two characters from given string

07-03-2017 slice remove

How to find Angular Errors

06-03-2017 errors angularjs exceptionHandler