Skip to content

Commit a2e108d

Browse files
docs(angular): use correct variable
Co-authored-by: Brandy Smith <[email protected]>
1 parent a4c079f commit a2e108d

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

docs/angular/your-first-app/4-loading-photos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class PhotoService {
8383
// CHANGE: Display the photo by reading into base64 format
8484
for (let photo of this.photos) {
8585
// Read each saved photo's data from the Filesystem
86-
const file = await Filesystem.file({
86+
const readFile = await Filesystem.readFile({
8787
path: photo.filepath,
8888
directory: Directory.Data,
8989
});

docs/angular/your-first-app/5-adding-mobile.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,13 @@ public async loadSaved() {
155155
// If running on the web...
156156
if (!this.platform.is('hybrid')) {
157157
for (let photo of this.photos) {
158-
const file = await Filesystem.file({
158+
const readFile = await Filesystem.readFile({
159159
path: photo.filepath,
160160
directory: Directory.Data
161161
});
162162

163163
// Web platform only: Load the photo as base64 data
164-
photo.webviewPath = `data:image/jpeg;base64,${file.data}`;
164+
photo.webviewPath = `data:image/jpeg;base64,${readFile.data}`;
165165
}
166166
}
167167
}
@@ -273,12 +273,12 @@ export class PhotoService {
273273
// If running on the web...
274274
if (!this.platform.is('hybrid')) {
275275
for (let photo of this.photos) {
276-
const file = await Filesystem.file({
276+
const readFile = await Filesystem.readFile({
277277
path: photo.filepath,
278278
directory: Directory.Data,
279279
});
280280
// Web platform only: Load the photo as base64 data
281-
photo.webviewPath = `data:image/jpeg;base64,${file.data}`;
281+
photo.webviewPath = `data:image/jpeg;base64,${readFile.data}`;
282282
}
283283
}
284284
}

versioned_docs/version-v7/angular/your-first-app/4-loading-photos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class PhotoService {
8383
// CHANGE: Display the photo by reading into base64 format
8484
for (let photo of this.photos) {
8585
// Read each saved photo's data from the Filesystem
86-
const file = await Filesystem.file({
86+
const readFile = await Filesystem.readFile({
8787
path: photo.filepath,
8888
directory: Directory.Data,
8989
});

versioned_docs/version-v7/angular/your-first-app/5-adding-mobile.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,13 @@ public async loadSaved() {
155155
// If running on the web...
156156
if (!this.platform.is('hybrid')) {
157157
for (let photo of this.photos) {
158-
const file = await Filesystem.file({
158+
const readFile = await Filesystem.readFile({
159159
path: photo.filepath,
160160
directory: Directory.Data
161161
});
162162

163163
// Web platform only: Load the photo as base64 data
164-
photo.webviewPath = `data:image/jpeg;base64,${file.data}`;
164+
photo.webviewPath = `data:image/jpeg;base64,${readFile.data}`;
165165
}
166166
}
167167
}
@@ -273,12 +273,12 @@ export class PhotoService {
273273
// If running on the web...
274274
if (!this.platform.is('hybrid')) {
275275
for (let photo of this.photos) {
276-
const file = await Filesystem.file({
276+
const readFile = await Filesystem.readFile({
277277
path: photo.filepath,
278278
directory: Directory.Data,
279279
});
280280
// Web platform only: Load the photo as base64 data
281-
photo.webviewPath = `data:image/jpeg;base64,${file.data}`;
281+
photo.webviewPath = `data:image/jpeg;base64,${readFile.data}`;
282282
}
283283
}
284284
}

0 commit comments

Comments
 (0)