Typescript example of routing app

Hi, Im new of Lightning and I’m trying to build a simple app in typescript but i get stuck with the page focus.
At this link you can find my test repo:

There are only 2 pages without widget and the main app.ts file. The _handleEnter() function setted in App.ts doesn’t change page focus to the next page after the navigation.
Could you please tell me what’s is wrong in the code?
Thanks in advance

Hi!

Make sure you read through

You’re App component needs to extend Router.app for it to set the _getFocused to the Page element. Then things should work. Also in settings.json change inspector to True which will help you debug.

Chris

Hi Chris,
thank you very much!!!
Now it’s working :slight_smile: