Skip to content

Instantly share code, notes, and snippets.

@EricCat
Created June 25, 2015 02:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EricCat/516a9f7a5e53bd5911ae to your computer and use it in GitHub Desktop.
Save EricCat/516a9f7a5e53bd5911ae to your computer and use it in GitHub Desktop.
app_test module
// 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