setHashUrlStrategy function

void setHashUrlStrategy()

Sets the URL strategy of your web app to using a leading has (#) instead of paths.

You can safely call this on all platforms, i.e. also when running on mobile or desktop. In that case, it will simply be a noop.

See also:

Implementation

void setHashUrlStrategy() {
  // Noop.
}