Commit 71057384 authored by Matthieu Fesselier's avatar Matthieu Fesselier

update: fix readme and examples

parent 54d100a8
Pipeline #3965 passed with stage
in 28 seconds
......@@ -11,11 +11,7 @@ window.dispatchEvent(new CustomEvent('read', {detail: {resource: resource}}))
```
## Usage
First, you need to import `moment.js` library in your template, to display the dates properly.
```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
```
Then, in your template, insert the following line where you want to display the component.
In your template, insert the following line where you want to display the component.
```html
<sib-notifications bind-user id-suffix="inbox"></sib-notifications>
......
......@@ -19,7 +19,6 @@
<script type="module" src="https://unpkg.com/@startinblox/core@0.7"></script>
<script type="module" src="https://unpkg.com/@startinblox/router"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<style>
:root{
......
......@@ -19,7 +19,6 @@
<script type="module" src="https://unpkg.com/@startinblox/core@0.7"></script>
<script type="module" src="https://unpkg.com/@startinblox/router"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<style>
:root{
......
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