Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@odoe
Created April 20, 2015 17:05
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 odoe/62e5b2bb19008284e0d6 to your computer and use it in GitHub Desktop.
Save odoe/62e5b2bb19008284e0d6 to your computer and use it in GitHub Desktop.
Main file for Mayhem sample
import WebApplication = require('mayhem/WebApplication');
var app:WebApplication = new WebApplication({
name: 'Test App',
components: {
router: {
routes: {
'index': {
model: 'app/viewModels/Index',
path: 'index',
view: 'app/views/Index.html'
}
}
}
}
});
app.run().otherwise(function (error:Error):void {
console.log('app error', error);
});
export = app;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment