But i want to develop the application without the WinJs support.
It is possible. WinJS is just a javascript library. You can use any js lib that you like to build your app, just like web development. But there are a few things you need to care about:
App Lifecycle: you will need to implement the app lifecycle events in your app,without WinJS, you can implement the lifecycle using below codes:
Windows.UI.WebUI.WebUIApplication.addEventListener("activated", activatedEventhandler, false);
Windows.UI.WebUI.WebUIApplication.addEventListener("suspending", suspendingEventhandler, false);
Windows.UI.WebUI.WebUIApplication.addEventListener("resuming", resumingEventhandler, false);
Here is a complete sample of App lifecycle:Lifecycle Sample.
- It is strongly recommended to make your app a Single Page Application. And here is a case that describes the advantages and disadvantages.
- For security reason, UWP doesn't support inline javascript. So something like this won't work:
<button onclick="someFunc()">Click Me</button>