UNPKG

win10-rocks

Version:

Build apps for Win10 using the winjs-rocks MVVM architecture

26 lines (21 loc) 781 B
var WinJSRocks = require("winjs-rocks"); module.exports = { applicationReadyMessage: function(type, args) { console.log("Hooks:ApplicationReadyMessage"); var MessageService = WinJSRocks.ioc.getService('message'); MessageService.send("navigateToMessage", { viewKey: "splash" }); }, navigatedMessage: function(type, args) { console.log("Hooks:NavigatedMessage"); }, navigatingMessage: function(type, args) { console.log("Hooks:NavigatingMessage"); var NavigationService = WinJSRocks.ioc.getService('navigation'); $(NavigationService.getViewElement()).addClass('loading'); }, viewLoadTimeoutMessage: function(type, ar) { console.log("Hooks:ViewLoadTimeout"); } };