#WinJSRocks-Extras
Contains helpful tools for use with the WinJSRocks MVVM library.
var WinJSRocks = require('winjsrocks');
var WinJSRocksExtras = require('winjsrocks-extras');
var app = new WinJSRocks.Application();
app.builder.registerProvider("localStorage", WinJSRocksExtras.Provider.IndexDBStorage);
app.configure({
plugins:[
new WinJSRocksExtras.Plugin.PlatformFeature(app)
]
},
function(err){
// App is ready to have 'load' called!
});
Plugin.PlatformFeature
- Uses the platform package to append device/platform data attributes to the document header`
Provider.IndexDBStorage
- IndexDB implementation of the WinJSRockslocalStorage
provider