$scope.init = function (lessonplanId) {
    Task = TaskResource(lessonplanId);

    Task.query(function (tasks) {
      $scope.tasks = tasks;