Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WinJS with AngularJS

I have a lot of angularjs code (written by a colleague) and I'm trying to assess how much of it is re-usable in a Windows 8 Metro (or whatever they decide to rename it) app.

Does anyone know how well angularjs gels with WinJS?

As Windows 8 is still very new and there might not be too many people out there (if any) that have tried using angular to build a Windows 8 app, does anyone have experience trying to use angular with some other framework that requires specific proprietary html attributes (like maybe a Yahoo Connected TV app).

My main concern is that the WinJS proprietary html attributes won't get picked up and acted on properly when content is dynamically inserted into the DOM via angular but I have no idea.

I'm still waiting for my Windows dev box to arrive so I'm just doing research now. If it turns up before anyone answers I'll circle back and share my results.

like image 241
Endophage Avatar asked Aug 14 '12 18:08

Endophage


1 Answers

Its just a normal HTML platform, which is the same as IE10 interms of capability. There are restrictions on certain direct setting of innerHTML etc, which much pass through toStaticHTML first. However, this can be can worked around.

Note, it's not required to use WinJS to write a HTML5 Win8 application.

like image 73
Dominic Hopton Avatar answered Oct 07 '22 17:10

Dominic Hopton