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
//Beispielcode | |
<template> | |
<q-card style="width: 100%"> | |
<q-card-section> | |
<szenario-vergleich-table :szenario-list="state.szenarios" /> | |
<div v-if="state.loading" class="row justify-center q-pt-lg"> | |
<q-spinner size="lg" color="primary" /> | |
</div> | |
</q-card-section> |
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> | |
<form v-if="book" @submit.prevent="onSubmit"> | |
<label for="title">Title: </label> | |
<input type="text" name="title" id="title" v-model="book.title" /> | |
<div v-if="errors.title"> | |
{{ errors.title }} | |
</div> | |
<button type="submit">Save</button> | |
</form> | |
</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
// 1. Try to name all eight Javascript types | |
// number | |
const num = 1; | |
// string | |
const str = "Hello"; | |
// boolean | |
const bool = true; // or false | |
// null | |
const n = null; |
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
// 1. Try to name all eight Javascript types | |
// 2. Which of these statements are true | |
0 == "0"; | |
0 === "0"; | |
null == undefined; | |
false == "false"; | |
[] == ""; | |
"" == false; | |
NaN == NaN; |
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
use std::collections::HashMap; | |
#[derive(Debug, Clone)] | |
struct User { | |
id: String, | |
name: String, | |
} | |
#[derive(Debug, Clone)] | |
struct Post { |