Tutorialsplane

Angularjs lowercase example


Angularjs lowercase example : It converts the string in lowercase


Angularjs lowercase Example & Syntax

In Html Template

{{ expression | lowercase}}

In JavaScript

$filter('lowercase')();

Lowercase Example




    



<div ng-app="" ng-init="myData=[{name:'John',city:'New York'},
                                      {name:'Mike',city:'Florida'},
                                      {name:'Minni',city:'London'},
                                      {name:'Sefali',city:'Sydney'},
                                      {name:'Maya',city:'Peris'},
                                      {name:'Kelly',city:'Beijing'}]">
    <table id="searchResults">
    <tr><th>Name</th><th>City</th></tr>
    <tr ng-repeat="data in myData">
    <td>{{data.name | lowercase}}</td>
    <td>{{data.city | lowercase}}</td>
    </tr>
    </table>

</div>



Try it ยป

Angularjs lowercase example