Skip to content

Commit

Permalink
docs: remove template from README code example [skip ci] (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
samiheikki authored and web-padawan committed Apr 18, 2019
1 parent 8dd5301 commit 41e349b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,15 @@
```
-->
```html
<vaadin-notification opened position="middle" duration="-1">
<template>
Your work has been saved
</template>
</vaadin-notification>
<vaadin-notification opened position="middle" duration="-1"></vaadin-notification>

<script>
const notification = document.querySelector('vaadin-notification');
notification.renderer = function(root) {
root.textContent = 'Your work has been saved';
};
</script>
```

[<img src="https://raw.githubusercontent.com/vaadin/vaadin-notification/master/screenshot.png" width="336" alt="Screenshot of vaadin-notification">](https://vaadin.com/components/vaadin-notification)
Expand Down
14 changes: 9 additions & 5 deletions vaadin-directory-description.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@

## Example Usage
```html
<vaadin-notification opened position="middle" duration="-1">
<template>
Your work has been saved
</template>
</vaadin-notification>
<vaadin-notification opened position="middle" duration="-1"></vaadin-notification>

<script>
const notification = document.querySelector('vaadin-notification');
notification.renderer = function(root) {
root.textContent = 'Your work has been saved';
};
</script>
```

0 comments on commit 41e349b

Please # to comment.