'use strict';

angular.module('CactusApp.tasks', ['ngRoute'])

    .config(['$routeProvider', function ($routeProvider) {
        $routeProvider.when('/tasks', {
            templateUrl: 'components/tasks/tasks.html',
            controller: 'Tasks'
        });
    }])

    .controller('Tasks', function Tasks($scope, Auth, groupRef, groupList, $firebaseArray, $firebaseObject) {
        var loggedIn = Auth.$getAuth();
        var referenceToGroup = new Firebase('https://cactus-app.firebaseio.com/Groups/' + loggedIn.uid)
        var groupList = $firebaseObject(referenceToGroup);

        groupList.$loaded().then(function () {
            groupList.$bindTo($scope, "data")
        });
    });

@@ -321,18 +321,8 @@
 uth,
- groupRef,
  gro
@@ -342,13 +342,14 @@
 base
-Array
+Object
 , $f
@@ -355,22 +355,21 @@
 firebase
-Object
+Array
 ) %7B%0A    
@@ -661,16 +661,115 @@
 %22data%22)%0A
+        %7D)%0A            .catch(function (error) %7B%0A                console.log(%22Error:%22, error);%0A    
         

add catch to tasks