Commit 5443c7b
authored
fix:
This allows to copy&paste the example without running in errors, and without changing current semantics. I, however, believe the example is oudated because what the core `pretty-date` component actually does is:
```html
<time @name="pretty-date" :datetime="toIso(date)">
{ pretty(date) }
<script>
pretty(date) {
return new(date).toLocaleDateString(this.locale, {
year: 'numeric',
month: 'long',
day: 'numeric'
});
}
toIso(date) {
return new Date(date).toISOString();
}
</script>
</time>
```pretty-date example in docs1 parent 783c717 commit 5443c7b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| |||
0 commit comments