Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: スライドでの Vue.js 公式ドキュメントの URL の差し替え #250

Merged
merged 1 commit into from
Jan 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions docs/slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ drawings:

- はじめに
- Composition API, 学習環境など
- リアクティブの探求
- リアクティビティーの探求
- ref, reactive, toRefs, readonly など
- 算出プロパティ(computed)
- computed
Expand All @@ -56,7 +56,7 @@ Web アプリケーションにおけるユーザーインターフェイスを

<div class="pt-4 text-sm">

<a href="https://v3.ja.vuejs.org/guide/introduction.html#vue-js-%E3%81%A8%E3%81%AF">
<a href="https://ja.vuejs.org/guide/introduction.html">
<carbon:arrow-right class="inline" /> 公式サイト
</a>
</div>
Expand Down Expand Up @@ -231,14 +231,14 @@ function increment() {

---

# リアクティブの探求
# リアクティビティーの探求

<div class="flex gap-4">

<div>
<video controls loop style="height: 30vh" src="https://v3.ja.vuejs.org/images/reactivity-spreadsheet.mp4"></video>

<a href="https://v3.ja.vuejs.org/guide/reactivity.html#%E3%83%AA%E3%82%A2%E3%82%AF%E3%83%86%E3%82%A3%E3%83%95%E3%82%99%E3%81%A8%E3%81%AF%E4%BD%95%E3%81%8B">参考</a>
<a href="https://ja.vuejs.org/guide/extras/reactivity-in-depth.html#what-is-reactivity">参考</a>

</div>

Expand All @@ -264,7 +264,7 @@ console.log(sum); // 5のまま(期待は6)

---

# リアクティブの探求
# リアクティビティーの探求

<div class="flex gap-4">

Expand Down Expand Up @@ -300,7 +300,7 @@ console.log(sum); // 3.

---

# リアクティブの探求(ref によるリアクティブな値の参照)
# リアクティビティーの探求(ref によるリアクティブな値の参照)

`ref` を使った値を操作する場合、`setup` 関数内では `value` プロパティにアクセスする。
`template` 内では変数(定数)そのものを参照するだけで値を得られる。
Expand Down Expand Up @@ -341,7 +341,7 @@ const sum = computed(() => {

---

# リアクティブの探求(リアクティブな値をオブジェクトにまとめる)
# リアクティビティーの探求(リアクティブな値をオブジェクトにまとめる)

リアクティブにしたいデータがオブジェクトの場合、`reactive` を使う

Expand All @@ -364,7 +364,7 @@ const user = reactive({

---

# リアクティブの探求(オブジェクトにまとめたリアクティブな値を取り出す)
# リアクティビティーの探求(オブジェクトにまとめたリアクティブな値を取り出す)

前項の `reactive` だと、分割代入しても値が取り出せない。Vue では `toRefs` を使うことで可能になる。

Expand All @@ -389,7 +389,7 @@ const { name } = toRefs(user);

---

# リアクティブの探求(リアクティブな値を読み込み専用にする)
# リアクティビティーの探求(リアクティブな値を読み込み専用にする)

```vue
<template>
Expand Down Expand Up @@ -671,7 +671,7 @@ setInterval(() => {
</template>

<script setup>
const url = "https://v3.ja.vuejs.org/";
const url = "https://ja.vuejs.org/";
</script>
```

Expand Down Expand Up @@ -1908,7 +1908,7 @@ pages/

# Vue + Vue Router と Nuxt 3 の比較(ルーティング)

Vue 3 はテンプレートの最上位に複数要素が書けるようになった https://v3.ja.vuejs.org/guide/migration/fragments.html
Vue 3 はテンプレートの最上位に複数要素が書ける

例:

Expand Down Expand Up @@ -2084,7 +2084,7 @@ Vue 固有の記法についての公式なスタイルガイド
- スタイルガイドに書いてあることを守ると、事前に起こりうる問題に対処することができる
- [eslint-plugin-vue](https://eslint.vuejs.org/)を使うとスタイルガイドに違反しているか静的にコードを解析・修正できる

[スタイルガイド](https://v3.ja.vuejs.org/style-guide/)
[スタイルガイド](https://ja.vuejs.org/style-guide/)

---

Expand Down