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
public class Concurrent { | |
public static void main(String[] args) { | |
Thread runner1 = new Thread(new ThreadRunner("R1")); | |
Thread runner2 = new Thread(new ThreadRunner("R2")); | |
runner1.start(); | |
runner2.start(); | |
} |
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
save() { | |
this.$emit('save-todo', { | |
title: this.title, | |
description: this.description | |
}); | |
this.title = ''; | |
this.description = ''; | |
} |
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
<template> | |
<div id="todo" class="box"> | |
<div> | |
<label for="title">Title</label> | |
<input type="text" id="title" v-model="title" /> | |
</div> | |
<div> | |
<label for="description">Description</label> | |
<input type="text" id="description" v-model="description" /> | |
</div> |
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
<template> | |
<div id="todo-list"> | |
<ul> | |
<li v-for="todo in todos">{{ todo }}</li> | |
</ul> | |
</div> | |
</template> | |
<script> | |
export default { |
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
<template> | |
<div id="app"> | |
<div> | |
<h3>Todo List</h3> | |
<todo/> | |
<todo-list v-bind:todos="todos"></todo-list> | |
</div> | |
</div> | |
</template> |
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
<template> | |
<div id="todo-list"> | |
<ul> | |
<li v-for="todo in todos">{{ todo }}</li> | |
</ul> | |
</div> | |
</template> | |
<script> | |
export default { |
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
<template> | |
<div id="app"> | |
<div> | |
<h3>Todo List</h3> | |
<todo/> | |
<todo-list></todo-list> | |
</div> | |
</div> | |
</template> |
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
<template> | |
<div id="todo-list"> | |
<ul> | |
<li>Todo 1</li> | |
<li>Todo 2</li> | |
<li>Todo 3</li> | |
</ul> | |
</div> | |
</template> |
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
<template> | |
<div id="todo"> | |
<label for="newtodo">Todo</label> | |
<input type="text" id="newtodo" /> | |
</div> | |
</template> | |
<script> | |
export default { | |
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
<template> | |
<div id="app"> | |
<div> | |
<h3>Todo List</h3> | |
<div id="todo"> | |
<label for="newtodo">Todo</label> | |
<input type="text" id="newtodo" /> | |
</div> | |
<div id="todo-list"> | |
<ul> |
NewerOlder