define(['modules/app-views/module'], function (module) {

    'use strict';

    module.registerController('ProjectsDemoCtrl', function ($scope, projects) {

        $scope.projects = projects.data;

        $scope.tableOptions =  {
            "data": projects.data.data,
//            "bDestroy": true,
            "iDisplayLength": 15,
            "columns": [
                {
                    "class":          'details-control',
                    "orderable":      false,
                    "data":           null,
                    "defaultContent": ''
                },
                { "data": "name" },
                { "data": "est" },
                { "data": "contacts" },
                { "data": "status" },
                { "data": "target-actual" },
                { "data": "starts" },
                { "data": "ends" },
                { "data": "tracker" }
            ],
            "order": [[1, 'asc']]
        }
    });
});
