svelte-bind-uri
v0.2.1
Published
```html <script lang="ts"> import { Location } from 'svelte-uri'
Downloads
1
Readme
<script lang="ts">
import { Location } from 'svelte-uri'
let searchParams = {
keys: ["a", "b"] // &keys=a&keys=b
key: "c" // & key=c
}
let hash = "test" // #test
let protocol: http // http:
let host: string // localhost
let port: number // 3000
</script>
<Location
bind:searchParams="{searchParams}"
bind:hash="{hash}"
bind:protocol="{protocol}"
bind:host="{host}"
bind:port="{port}"
bind:hostname="{hostname}"
bind:pathname="{pathname}"
href="{href}"
origin="{origin}"
username="{username}"
password="{password}"
/>