Skip to content

Instantly share code, notes, and snippets.

<template>
<img :src="logoURL" :alt="logoCaption" width="200" height="200" />
<h1>{{ title }}</h1>
<h2>Add a new task</h2>
<span>You have {{ allTasks }} {{ allTasks > 1 ? 'tasks' : 'task' }} at the moment</span>
<div>
<input type="text"
v-model="newTask"
<template>
<img :src="logoURL" :alt="logoCaption" width="200" height="200" />
<h1>{{ title }}</h1>
<h2>Add a new task</h2>
<span>You have {{ allTasks }} {{ allTasks > 1 ? 'tasks' : 'task' }} at the moment</span>
<div>
<input type="text"
v-model="newTask"
<template>
<img :src="logoURL" :alt="logoCaption" width="200" height="200" />
<h1>{{ title }}</h1>
<h2>Add a new task</h2>
<span>You have {{ allTasks }} {{ allTasks > 1 ? 'tasks' : 'task' }} at the moment</span>
<div>
<input type="text"
v-model="newTask"
<template>
<h1>{{ title }}</h1>
<h2>Add a new task</h2>
<span>You have {{ allTasks }} {{ allTasks > 1 ? 'tasks' : 'task' }} at the moment</span>
<div>
<input type="text"
v-model="newTask"
placeholder="Add a new task"
<template>
<h1>{{ title }}</h1>
<h2>Add a new task</h2>
<div>
<input type="text"
v-model="newTask"
placeholder="Add a new task"
>
<template>
<h1>{{ title }}</h1>
<h2>Add a new task</h2>
<div>
<input type="text"
v-model="newTask"
placeholder="Add a new task"
>
<template>
<h1>{{ title }}</h1>
<h2>Add a new task</h2>
<div>
<input type="text"
v-model="newTask"
placeholder="Add a new task"
>
<template>
<h1>{{ title }}</h1>
<ul>
<li v-for="task in tasks" :key="task.id">
{{ task.id }}. {{ task.name }}
<div v-if="task.finished">
<button>Delete task</button>
</div>
<template>
<h1>{{ title }}</h1>
<ul>
<li v-for="task in tasks" :key="task.id">
{{task.id}}. {{ task.name }}
</li>
</ul>
</template>
public async Task<ReturnType> DoSomethingAndReturnSomeValAsync()
{
DoSomething();
SomeType someObj = await DoSomethingElseAsync();
return new ReturnType(someObj);
}
private async Task<SomeType> DoSomethingElseAsync(){
...
}