Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions examples/todomvc.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</style>

<script type="module">
import { createApp } from '../src'
import { createApp } from 'https://unpkg.com/petite-vue?module'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waybe leave this with ../src to not need a network request in the examples


const STORAGE_KEY = 'todos-petite-vue'
const todoStorage = {
Expand Down Expand Up @@ -132,7 +132,7 @@
}).mount('#app')
</script>

<div id="app" @mounted="setupRouting" v-effect="save()" v-cloak>
<div id="app" @vue:mounted="setupRouting" v-effect="save()" v-cloak>
<section class="todoapp">
<header class="header">
<h1>todos</h1>
Expand Down Expand Up @@ -184,17 +184,17 @@ <h1>todos</h1>
</span>
<ul class="filters">
<li>
<a href="#/all" :class="{ selected: visibility === 'all' }">All</a>
<a href="#/all" @click="visibility = 'all'" :class="{ selected: visibility === 'all' }">All</a>
</li>
<li>
<a href="#/active" :class="{ selected: visibility === 'active' }"
<a href="#/active" @click="visibility = 'active'" :class="{ selected: visibility === 'active' }"
>Active</a
>
</li>
<li>
<a
href="#/completed"
:class="{ selected: visibility === 'completed' }"
@click="visibility = 'completed'" :class="{ selected: visibility === 'completed' }"
>Completed</a
>
</li>
Expand Down