Restangular–A complete sample to get you up and running

@itsananderson and I just spent way too long trying to get Restangular running. Here’s what worked for us:

<!doctype html >
<html ng-app="app">
<head>
    <title>Restangular</title>
    <script src="~/Scripts/angular.js"></script>
    <script src="~/Scripts/angular-resource.js"></script>
    <script src="~/Scripts/underscore.js"></script>
    <script type="text/javascript" src="http://cdn.jsdelivr.net/restangular/latest/restangular.js"></script>
</head>
<body>
    <div ng-controller="IndexCtrl" ng-cloak>
        <ul>
            <li ng-repeat="person in people"></li>
        </ul>
    </div>

    <script>
        var app = angular.module('app', ['restangular'])
            .config(function(RestangularProvider) {
                RestangularProvider.setBaseUrl('/api');
            });

        app.controller('IndexCtrl', function($scope, Restangular) {
            $scope.people = Restangular.all('person').getList();
        });

    </script>
</body>
</html>