-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ade07c2
commit f919ccf
Showing
10 changed files
with
75 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,13 @@ | ||
<p>Count: {count}</p> | ||
<button on:click='set({ count: count + 1 })'>+1</button> | ||
<button on:click="{() => count += 1}">+1</button> | ||
| ||
<style> | ||
button { | ||
width: 50px; | ||
height: 50px; | ||
} | ||
button { | ||
width: 50px; | ||
height: 50px; | ||
} | ||
</style> | ||
|
||
<script> | ||
export default { | ||
data () { | ||
return { | ||
count: 0 | ||
}; | ||
} | ||
}; | ||
let count = 0; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
<p>{hi}</p> | ||
| ||
<script> | ||
import { hello } from './utils'; | ||
import { hello } from './utils'; | ||
|
||
export default { | ||
data() { | ||
return { | ||
hi: hello('friend') | ||
}; | ||
} | ||
}; | ||
const hi = hello('friend'); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
<p>Count: {count}</p> | ||
<button on:click='set({ count: count + 1 })'>+1</button> | ||
| ||
<script> | ||
export default { | ||
data () { | ||
return { | ||
count: 0 | ||
}; | ||
} | ||
}; | ||
</script> | ||
let count = 1; | ||
</script> | ||
|
||
<p>Count: {count}</p> | ||
<button on:click="{() => count += 1}">+1</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
<Nested /> | ||
|
||
<script> | ||
import Nested from './nested'; | ||
import Nested from './nested'; | ||
</script> | ||
|
||
export default { | ||
components: { | ||
Nested | ||
} | ||
}; | ||
</script> | ||
<Nested /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
<p>Count: {count}</p>{/if} | ||
<button on:click='set({ count: count + 1 })'>+1</button> | ||
<p>Count: {count}</p>{/if} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
<p>Count: {count}</p> | ||
|
||
<script> | ||
export default { | ||
computed: { | ||
foo: 'BAR' | ||
} | ||
}; | ||
</script> | ||
export default {}; | ||
</script> | ||
|
||
<h1>Hello world</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters