File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed
docs/angular/your-first-app
versioned_docs/version-v7/angular/your-first-app Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff 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 });
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 });
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments