The TDG demo app fails on routing
OpenUI5 version: 1.20.5
The TDG example application in the SDK at test-resources/sap/m/demokit/tdg does not instantiate the custom router MyRouter.js in UIComponent - therefore the custom methods such as myNavToWithoutHash() cannot be found causing the app to fail.
Further to this - after looking at the code it doesn't seem to me that you can define a custom router in the way shown. I suspect the TDG demo was built with a yet to be released version of sap.ui.core.routing.Router. I also found that routing did not work with the POA demo app either.
This will be fixed with version 1.20.7
sorry for the late fix...
Hi, version 1.20.7 is available. Issue should be fixed. Regards, Janina
Thanks Janina, all good now... Maybe you could tell me why its considered "best-practice" to use a "custom" router class? (a custom router being the reason the app didn't work on versions earlier than 1.20.7)
Well currently it's a workaround because of missing functionality of the Router. I hope this gap will be closed with verson 1.24. Until then extending the router with a bit of app specific code is the cleanest solution to make up for the missing bits.
Best Regards, Tobias