define(function (require, exports, module) {

    var definition = ['todoList'];

    var getTemplate = function () {
        var template = '';
        template += '<ul>';
        template += '   <li ng-repeat="task in tasks track by task.id">';
        template += '       <span ng-bind="task.title"></span>';
        template += '       <button ng-click="done()">Mark done</button>';
        template += '       <button ng-click="remove()">Remove</button>';
        template += '   </li>';
        template += '</ul>';
        return template;
    };

    var TodoListDirective = function (Tasks) {
        return {
            restrict: 'E',  // AEC
            scope: {},
            template: getTemplate(),
            link: function (scope, element, attrs) {
                scope.tasks = Tasks;
            }
        };
    };

    TodoListDirective.$inject = ['Tasks'];

    definition.push(TodoListDirective);

    return definition;
});
@@ -309,157 +309,8 @@
 %3E';%0A
-        template += '       %3Cbutton ng-click=%22done()%22%3EMark done%3C/button%3E';%0A        template += '       %3Cbutton ng-click=%22remove()%22%3ERemove%3C/button%3E';%0A
     
@@ -648,16 +648,17 @@
  Tasks;%0A
+%0A
         

Remove buttons added in the wrong step.