winjs / angular-winjs

Project to smooth the AngularJS/WinJS interaction
Other
126 stars 46 forks source link

Navigating to same page in WinJS #65

Closed smilealdway closed 8 years ago

smilealdway commented 8 years ago

I am having trouble trying to navigate to a page from same page in using this shim. The "document.getElementById" is accessing previous page's DOM and thus ignoring new state. The issue is as described in the following link here - http://mcnextpost.com/2014/05/27/best-practices-for-winjs-applications/. The solution is to use page.element instead of document to look up. However, in the agnular-winjs shim I am not able to access the "page" element. Is there a way?