winjsrocks-plugin-platform
v0.6.1
Published
WinJS-based MVVM architecture for cross-platform apps
Downloads
5
Maintainers
Readme
winjsrocks-plugin-platform
Contains platform identification features as a plugin for the WinJSRocks MVVM Framework for WinJS apps.
Activation
To activate, import the plugin project from npm:
npm install winjsrocks-plugin-platform
Then, register in the WinJSRocks.Application.Instance.configure
options within the plugins
array:
var WinJSRocks = require('winjsrocks');
var WinJSRocksPluginPlatform = require('winjsrocks-plugin-platform');
var app = new WinJSRocks.Application();
app.configure({
plugins:[
WinJSRocksPluginPlatform // Provide the Class Definition of the Plugin
]
},
function(err){
});
Features
- Platform.js automatically mapped to the app
body
tag