Created
June 25, 2015 02:35
-
-
Save EricCat/516a9f7a5e53bd5911ae to your computer and use it in GitHub Desktop.
app_test module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This file automatically gets called first by SocketStream and must always exist | |
// Make 'ss' available to all modules and the browser console | |
window.ss = require('socketstream'); | |
ss.server.on('disconnect', function(){ | |
console.log('Connection down :-('); | |
}); | |
ss.server.on('reconnect', function(){ | |
console.log('Connection back up :-)'); | |
}); | |
// angular app1 | |
var app = angular.module('app_test', [ | |
'ngAnimate', | |
'ngCookies', | |
'ngResource', | |
'ngSanitize', | |
'ngTouch', | |
'ui.bootstrap', | |
'ui.router', | |
'ui.grid', | |
'ui.grid.pagination']); | |
require('./app.ls')(app); | |
require('./factories.ls')(app); | |
require('./services.ls')(app); | |
app.controller(require('./controllers.ls')); | |
ss.server.on('ready', function(){ | |
// Wait for the DOM to finish loading | |
jQuery(function(){ | |
'use strict'; | |
// Load app | |
//require('./app.ls'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment