Navigation with Fable.Elmish

  • Hash-based (when SPA handles the changes only in the hash part of the URL)
  • Push-state (when SPA handles the changes in the whole path of the URL thanks to window.history API)

Hash-based routing

Push-state routing

  • To — for replacement of Href property
  • Replace — if we want to replace the current history state instead of pushing a new one (Replace false)

Wrapping up




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Build a Payment Gateway using C#, .NET Core and Mongo DB


Application Layer Protocols

We Are All Going to Make it… Just Not the Same Way

Local caching mirror for Ubuntu APT

Libraries In C What Are They Good For And all The Things That Got You Started

Google Play Console Login: Expand your business

What is and How do you Prepare for the GDPR?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mikhail Smal

Mikhail Smal

More from Medium

Tri-Mesh Subdivision Based on Specific Triangle Criteria

The Window Watcher — A Smarter Office using LoRaWAN

Supporting iOS Safari for a website using MediaPipe ML models, canvas MediaStreams and webm

Survey for Friendly Errors (Part I)