An open API service indexing awesome lists of open source software.

https://github.com/oldhammade/elm-location

Elm bindings to Browser's Location methods for Elm 0.17 [WIP]
https://github.com/oldhammade/elm-location

Last synced: about 2 months ago
JSON representation

Elm bindings to Browser's Location methods for Elm 0.17 [WIP]

Awesome Lists containing this project

README

        

# elm-location

This is a fork of [elm-community/elm-history](http://package.elm-lang.org/packages/elm-community/elm-history/latest),
specifically splitting out the `Location` module to make it independent and usable with Elm `0.17`.

**Note:** This is not yet compatible with Elm `0.17`. See [Tasks](#tasks) below.

## API

`location`: get the current location as a record that reflects the various parts of the URL.

`reload`: reload the current location

`assign`: change to a new location, pushing the previous location to history

`replace`: replace the current location with a new one.

**Note:** The difference between `assign` and `replace` is that `replace` removes the URL of the
current document from the history, meaning that it is not possible to use the `back` button
to navigate back to the original document.

## Tasks

- [x] Fork initial repository and extract `Location` package
- [ ] Update Native code to new format used in Elm `0.17`
- [ ] Update Elm code where necessary to use new Native format
- [ ] Add tests where possible/appropriate