joshburgess/elm-route-craft/1.0.0

App.Navigation

Type-safe navigation helpers.

These work with the Route.Router and Effect types to provide navigation using route values instead of raw strings.

-- In an update function:
( model, Navigation.navigateTo router (BlogPost 42) )


-- In a view function:
Navigation.link router (BlogPost 42) [ class "blog-link" ] [ text "Read" ]
replaceRoute : Router route -> route -> Effect shared msg

Navigate to a route without adding to browser history.

View Helpers