JSFiddle - React, Tailwind, and code Playground

by gedave

HTML

<div ng-app ng-controller="Main">
    <input type="text" ng-model="status">
    <li ng-repeat="user in users | filter:{status: status}">{{user.name}}</li>
    {{users}}
</div>

JavaScript

function Main($scope){
    $scope.status = 1;
    $scope.users = [{name: 'first user', status: 1},
                    {name: 'second user', status: 2},
                    {name: 'third user', status: 3}];
}