AngularJs OrderBy, Uppercase, Lowercase and Array filter

//All filters in One example code as given below.

<!DOCTYPE html>
    <script src=""></script>
        var app = angular.module("myApp", []);
        app.controller("MyCtrl", function ($scope) {
            $scope.users = [{
                name: "Anil Singh",
                age: 30
            }, {
                name: "Sunil",
                age: 20
            }, {
                name: "Viru Da",
                age: 40
            }, {
                name: "Aradhya",
                age: 1
<body ng-app="myApp">
    <div ng-controller="MyCtrl">
        <div class="form-inline">
            <input ng-model="username" type="text" placeholder="Flter key">
        <ul ng-repeat="user in users | filter:username | orderBy: 'age'  ">
            <li>{{ | uppercase }}</li>
            <li>{{ | lowercase }}</li>

The output as below,

About Blogger


Hey! I am Anil Singh. I am Active Blogger, Writer and Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...

    Blogger Comment
    Facebook Comment
SQL Server NodeJs TypeScript JavaScript Angular SQL Server My Book