We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef048f4 commit d41df82Copy full SHA for d41df82
samples/app/220.js
@@ -6,7 +6,7 @@ Vue.config.silent = false
6
const CompButton = {
7
template: `
8
<Button @tap="counter++">{{label}}: {{counter}}</Button>
9
- `,
+ `,
10
name: 'CompButton',
11
props: ['label'],
12
data() {
@@ -24,13 +24,11 @@ new Vue({
24
<Frame>
25
<Page>
26
<ActionBar title="Issue #127" />
27
-
28
<StackLayout>
29
<Button @tap="counter++">{{counter}}</Button>
30
31
<keep-alive>
32
- <CompButton v-if="counter % 2" key="odd" label="Odd"></CompButton>
33
- <CompButton v-else key="even" label="Even"></CompButton>
+ <CompButton v-if="counter % 2" key="odd" label="Odd" />
+ <CompButton v-else key="even" label="Even" />
34
</keep-alive>
35
</StackLayout>
36
</Page>
0 commit comments