'use strict';

var chatterBox = angular.module('chatterBox', [
    // 'ngRoute',
    'btford.socket-io'
]);

chatterBox.factory('socket', function (socketFactory) {
    return socketFactory();
});

//chatterBox.config(['$routeProvider',
    //function($routeProvider) {
        //$routeProvider.when('/', {
            //templateUrl: ,
            //controller:
        //});
    //}
//]);

'use strict';

var chatterBox = angular.module('chatterBox', [
    'ngRoute',
    'btford.socket-io'
]);

chatterBox.factory('socket', function (socketFactory) {
    return socketFactory();
});

chatterBox.config(['$routeProvider',
    function($routeProvider) {
        $routeProvider.when('/', {
            templateUrl: '../templates/container.html',
            controller: 'MsgController'
        });
    }
]);

add ng-route dependancy to our app and configure a default view