2100 8/21/2015 1:03:22 AM

Example:

:
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
:
<p>Food Items:</p>

<div ng-app="foodcatApp" ng-controller="FoodListCtrl">
        <ul>
            <li ng-repeat="food in foods">
                <p><strong>{{food.name}}</strong></p>
            </li>
        </ul>
        <p>Total number of food itesm: {{foods.length}}</p>

</div>
:
var foodcatApp = angular.module('foodcatApp', []);

foodcatApp.controller('FoodListCtrl', function ($scope) {
    $scope.foods = [{ 'name': 'Sushi'}, {'name': 'Rasagulla'},{ 'name': 'Dumpling'},{'name': 'Pasta'}];    
});
: