Skip to content

Commit a4c079f

Browse files
committed
Merge branch 'angularPhotoGalleryCodeContext' of github.com:soundproofboot/ionic-docs into angularPhotoGalleryCodeContext
2 parents 68ca2c7 + a55294f commit a4c079f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class PhotoService {
5151

5252
## Platform-specific Logic
5353

54-
First, we’ll update the photo saving functionality to support mobile. In the `savePicture()` method, check which platform the app is running on. If it’s “hybrid” (Capacitor, the native runtime), then read the photo file into base64 format using the `Filesystem`'s' `readFile()` method. Otherwise, use the same logic as before when running the app on the web.
54+
First, we’ll update the photo saving functionality to support mobile. In the `savePicture()` method, check which platform the app is running on. If it’s “hybrid” (Capacitor, the native runtime), then read the photo file into base64 format using the `Filesystem.readFile()` method. Otherwise, use the same logic as before when running the app on the web.
5555

5656
Update `savePicture()` to look like the following:
5757

docs/angular/your-first-app/7-live-reload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export interface UserPhoto {
7878
}
7979
```
8080

81-
Next, in `tab2.page.ts`, implement the `showActionSheet()` method. We're adding two options: "Delete", which calls `PhotoService.deletePhoto()`, and "Cancel". The cancel button will automatically closes the action sheet when assigned the "cancel" role.
81+
Next, in `tab2.page.ts`, implement the `showActionSheet()` method. We're adding two options: "Delete", which calls `PhotoService.deletePhoto()`, and "Cancel". The cancel button will automatically close the action sheet when assigned the "cancel" role.
8282

8383
```ts
8484
import { Component } from '@angular/core';

0 commit comments

Comments
 (0)