Created
April 20, 2015 17:05
-
-
Save odoe/62e5b2bb19008284e0d6 to your computer and use it in GitHub Desktop.
Main file for Mayhem sample
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
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