You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
679 B

'use strict';
angular.module('app', [
'ngRoute',
'btford.socket-io',
'ngMaterial',
'app.chat'
])
.factory('socket', function(socketFactory) {
return socketFactory({
ioSocket: io.connect('localhost:3000')
});
//return socketFactory();
})
.config(['$locationProvider', '$routeProvider', function($locationProvider, $routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/chat/chat.html',
controller: 'ChatCtrl'
});
$locationProvider.hashPrefix('!');
$routeProvider.otherwise({redirectTo: '/'});
}]);