Closed amitaibu closed 8 years ago
Ah, that's a good idea -- I should do an example based on the elm-architecture-tutorial that allows navigation from one "page" to another. Either that, or I should do a version of the TodoListMVC.
I'd refer people to my csrs-elm, but it's not really a simple enough example, especially since I'm doing some funky stuff with modules there.
I'd go with a simple pages (e.g. the counter examples), as it won't distract people from the actual router implementation. The TodoMVC might be nice as a second more advanced example.
So, I've got some example code checked in now:
https://github.com/rgrempel/elm-route-hash/tree/master/examples/elm-architecture-tutorial
Note that this includes an example of the changes you need to make to StartApp
if you're using start-app -- see:
@rgrempel thanks a lot for this module!
I think a simple example that wires everything in, and for example allows navigating between some
Counter.elm
andCounterPair.elm
pages will go a long way with understanding how all the wiring should be done, and how it will replace the typical start-app