Skip to content

Commit

Permalink
Remove Polymer references from README code example
Browse files Browse the repository at this point in the history
  • Loading branch information
samiheikki committed Apr 1, 2019
1 parent 8eefd35 commit ef3df26
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,15 @@
-->
```html
<vaadin-notification opened position="middle" duration="-1">
<template>
Your work has been saved
</template>
</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
11 changes: 8 additions & 3 deletions vaadin-directory-description.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@
## Example Usage
```html
<vaadin-notification opened position="middle" duration="-1">
<template>
Your work has been saved
</template>
</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 ef3df26

Please sign in to comment.