Skip to content

Instantly share code, notes, and snippets.

@ermouth
Last active September 3, 2015 06:45
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 ermouth/2116add61807b8ce7add to your computer and use it in GitHub Desktop.
Save ermouth/2116add61807b8ce7add to your computer and use it in GitHub Desktop.
External manifest loader
({
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