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]
- Host: GitHub
- URL: https://github.com/oldhammade/elm-location
- Owner: OldhamMade
- Created: 2016-09-07T21:28:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-10T08:15:55.000Z (over 8 years ago)
- Last Synced: 2025-02-27T21:30:24.697Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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