In this example we have a dropdown with the values from 0 to 3. If user select 0 then ng-pluralize directive will show No room available for count 1 it will show One room available and so on.

<!DOCTYPE html> <html xmlns=""> <head> <title>Welcome to LearnKode - A code learning platform</title> <script src=""></script> <link rel="stylesheet" href=""> </head> <body ng-app="pluralizeExample"> <div ng-controller="ExampleController"> <div class="container" ng-init="rooms=[0,1,2,3]"> <div class="col-md-3"> <select class="form-control" ng-model="room" ng-options="room as room for room in rooms"></select> <ng-pluralize count="room" when="{'0':'No rooms available', '1':'{{room}} rooms available', '2':'{{room}} rooms available', '3':'{{room}} rooms available', }"> </ng-pluralize> </div> </div> </div> <script> var app = angular.module("pluralizeExample", []); app.controller('ExampleController', ['$scope', function ($scope) { $ = 0; }]); </script> </body> </html>