routing - Navigation with elm-reactor -


i have elm 0.18 app uses navigation module. navigate within using links [ [ href "/#/page" ] [ text "page" ], , redirects navigation.newurl mynewurl.

when fire elm-reactor, though, coming location http://localhost:8000/src/main.elm/, , clicking link above takes me http://localhost:8000/#/page. works fine webpack code, sends me main page elm-reactor.

what correct way navigate different pages within elm app , continue using elm-reactor?

your links go root of site because href value starts slash. if want change hash value, start instead hash character:

[ [ href "#/page" ] [ text "page" ] 

elm reactor useful lightweight debugging tool. if trying link different pages , modules within project, elm reactor not fit. may better served using webpack live-reload functionality rather trying alter code suit debugging environment.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -