Last active
September 3, 2015 06:45
-
-
Save ermouth/2116add61807b8ce7add to your computer and use it in GitHub Desktop.
External manifest loader
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
({ | |
require:[ | |
{ | |
"this.App":{ | |
url:"http://your.domain/someExternalManifest.json", | |
dataType:"json", | |
cache:false | |
} | |
} | |
], | |
data:{ | |
app: { /* App data will be mounted here */ } | |
}, | |
error:'<div>App start failed with message: {message}</div>', | |
init:['<div id="App"></div>'], | |
ui:{ | |
"#App":{ | |
bind:"app", | |
manifest:"this.App" | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment