Commit 44010f83 authored by Nicolas Mérigot's avatar Nicolas Mérigot

doc: update import + remove id-prefix

parent 2d067fe9
Pipeline #1898 passed with stage
in 27 seconds
......@@ -12,7 +12,7 @@ An full app example can be found in index.html:
You first need to load the webcomponents polyfill for the browsers that have not implemented them yet, and import the components you want to use in your HTML file:
```html
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/1.0.20/webcomponents-loader.js"></script>
<link rel="import" href="https://cdn.happy-dev.fr/sib-router/sib-router.html" />
<script type="module" src="https://unpkg.com/@startinblox/router@latest"></script>
```
Then you can use the new tags in your markup, for instance : `<sib-router>`.
......@@ -45,7 +45,6 @@ Displays a menu and handle the navigation for you.
`<sib-route>` accepts the following attributes:
- **id-prefix**: User by `sib-router` to extract the part of the URL that follows the `id-prefix`.
- **active**: This attribute is present on route being displayed by `<sib-router>`. It is automatically added/removed by `<sib-router>` and should not be tinkered manually.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment