Skip to content

Commit 7663914

Browse files
committed
docs(vue): update your first app pages
1 parent 32d4b9e commit 7663914

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/vue/your-first-app/2-taking-photos.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Now for the fun part - adding the ability to take photos with the device’s cam
1515

1616
## Photo Gallery Composable
1717

18-
We will create a standalone composition function paired with [Vue's Composition API](https://v3.vuejs.org/guide/composition-api-introduction.html#why-composition-api) to manage the photos for the gallery.
18+
We will create a standalone composition method paired with [Vue's Composition API](https://v3.vuejs.org/guide/composition-api-introduction.html#why-composition-api) to manage the photos for the gallery.
1919

2020
Create a new file at `src/composables/usePhotoGallery.ts` and open it up.
2121

@@ -122,7 +122,7 @@ export interface UserPhoto {
122122
}
123123
```
124124

125-
Above the `addNewToGallery()` method, define an array of `UserPhoto`, which will contain a reference to each photo captured with the Camera. Make it a reactive variable using Vue's [ref function](https://vuejs.org/api/reactivity-core.html#ref).
125+
Above the `addNewToGallery()` method, define an array of `UserPhoto`, which will contain a reference to each photo captured with the Camera. Make it a reactive variable using Vue's [ref method](https://vuejs.org/api/reactivity-core.html#ref).
126126

127127
```ts
128128
export const usePhotoGallery = () => {

docs/vue/your-first-app/3-saving-photos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ We’re now able to take multiple photos and display them in a photo gallery on
99

1010
## Filesystem API
1111

12-
Fortunately, saving them to the filesystem only takes a few steps. Begin by creating a new class method, `savePicture()`, in the `usePhotoGallery` function.
12+
Fortunately, saving them to the filesystem only takes a few steps. Begin by creating a new class method, `savePicture()`, in the `usePhotoGallery` method.
1313

1414
```ts
1515
import { ref, onMounted, watch } from 'vue';

0 commit comments

Comments
 (0)