'use strict';

/**
 * @ngdoc directive
 * @name lubri.widgets.directive:taskBox
 * @description
 * # taskBox
 */
 angular.module('lubri.widgets')
 .directive('taskBox', function() {
     return {
         templateUrl: 'scripts/widgets/directives/taskbox.html',
         scope: {},
         controller: ['$scope', '$element', 'TaskService', function($scope, $element, TaskService){
                 $scope.tasks = TaskService.tasks;
                 $scope.number = $scope.tasks.length;
         }],
         restrict: 'A'
     };
 });
