Skip to content

Commit 32c1a4b

Browse files
committed
docs(angular): change existing code text
1 parent 1e4305e commit 32c1a4b

File tree

10 files changed

+20
-20
lines changed

10 files changed

+20
-20
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ To define the data structure for our photo metadata, create a new interface name
122122

123123
```ts
124124
export class PhotoService {
125-
// Same old code from before.
125+
// ...existing code...
126126
}
127127

128128
// CHANGE: Add the `UserPhoto` interface.
@@ -140,7 +140,7 @@ export class PhotoService {
140140
public photos: UserPhoto[] = [];
141141

142142
public async addNewToGallery() {
143-
// Same old code from before.
143+
// ...existing code...
144144
}
145145
}
146146
```

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { Preferences } from '@capacitor/preferences';
2727
providedIn: 'root',
2828
})
2929
export class PhotoService {
30-
// Same old code from before.
30+
// ...existing code...
3131

3232
// CHANGE: Add the `savePicture()` method.
3333
private async savePicture(photo: Photo) {
@@ -105,7 +105,7 @@ import { Preferences } from '@capacitor/preferences';
105105
providedIn: 'root',
106106
})
107107
export class PhotoService {
108-
// Same old code from before.
108+
// ...existing code...
109109

110110
// CHANGE: Update the `savePicture()` method.
111111
private async savePicture(photo: Photo) {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class PhotoService {
2626
// CHANGE: Add a key for photo storage.
2727
private PHOTO_STORAGE: string = 'photos';
2828

29-
// Same old code from before.
29+
// ...existing code...
3030
}
3131
```
3232

@@ -57,7 +57,7 @@ With the photo array data saved, create a new public method in the `PhotoService
5757

5858
```ts
5959
export class PhotoService {
60-
// Same old code from before.
60+
// ...existing code...
6161

6262
// CHANGE: Add the method to load the photo data.
6363
public async loadSaved() {
@@ -72,7 +72,7 @@ On mobile (coming up next!), we can directly set the source of an image tag - `<
7272

7373
```ts
7474
export class PhotoService {
75-
// Same old code from before.
75+
// ...existing code...
7676

7777
// CHANGE: Update the `loadSaved` method.
7878
public async loadSaved() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class PhotoService {
4242
this.platform = platform;
4343
}
4444

45-
// Same old code from before.
45+
// ...existing code...
4646
}
4747
```
4848

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import { Capacitor } from '@capacitor/core';
4949
providedIn: 'root',
5050
})
5151
export class PhotoService {
52-
// Same old code from before.
52+
// ...existing code...
5353

5454
// CHANGE: Add `deletePhoto()` method.
5555
public async deletePhoto(photo: UserPhoto, position: number) {
@@ -98,7 +98,7 @@ export class Tab2Page {
9898
// CHANGE: Update constructor.
9999
constructor(public photoService: PhotoService, public actionSheetController: ActionSheetController) {}
100100

101-
// Same old code from before.
101+
// ...existing code...
102102

103103
// CHANGE: Add `showActionSheet` method.
104104
public async showActionSheet(photo: UserPhoto, position: number) {

versioned_docs/version-v7/angular/your-first-app/2-taking-photos.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ To define the data structure for our photo metadata, create a new interface name
122122

123123
```ts
124124
export class PhotoService {
125-
// Same old code from before.
125+
// ...existing code...
126126
}
127127

128128
// CHANGE: Add the `UserPhoto` interface.
@@ -140,7 +140,7 @@ export class PhotoService {
140140
public photos: UserPhoto[] = [];
141141

142142
public async addNewToGallery() {
143-
// Same old code from before.
143+
// ...existing code...
144144
}
145145
}
146146
```

versioned_docs/version-v7/angular/your-first-app/3-saving-photos.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { Preferences } from '@capacitor/preferences';
2727
providedIn: 'root',
2828
})
2929
export class PhotoService {
30-
// Same old code from before.
30+
// ...existing code...
3131

3232
// CHANGE: Add the `savePicture()` method.
3333
private async savePicture(photo: Photo) {
@@ -105,7 +105,7 @@ import { Preferences } from '@capacitor/preferences';
105105
providedIn: 'root',
106106
})
107107
export class PhotoService {
108-
// Same old code from before.
108+
// ...existing code...
109109

110110
// CHANGE: Update the `savePicture()` method.
111111
private async savePicture(photo: Photo) {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class PhotoService {
2626
// CHANGE: Add a key for photo storage.
2727
private PHOTO_STORAGE: string = 'photos';
2828

29-
// Same old code from before.
29+
// ...existing code...
3030
}
3131
```
3232

@@ -57,7 +57,7 @@ With the photo array data saved, create a new public method in the `PhotoService
5757

5858
```ts
5959
export class PhotoService {
60-
// Same old code from before.
60+
// ...existing code...
6161

6262
// CHANGE: Add the method to load the photo data.
6363
public async loadSaved() {
@@ -72,7 +72,7 @@ On mobile (coming up next!), we can directly set the source of an image tag - `<
7272

7373
```ts
7474
export class PhotoService {
75-
// Same old code from before.
75+
// ...existing code...
7676

7777
// CHANGE: Update the `loadSaved` method.
7878
public async loadSaved() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class PhotoService {
4242
this.platform = platform;
4343
}
4444

45-
// Same old code from before.
45+
// ...existing code...
4646
}
4747
```
4848

versioned_docs/version-v7/angular/your-first-app/7-live-reload.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import { Capacitor } from '@capacitor/core';
4949
providedIn: 'root',
5050
})
5151
export class PhotoService {
52-
// Same old code from before.
52+
// ...existing code...
5353

5454
// CHANGE: Add `deletePhoto()` method.
5555
public async deletePhoto(photo: UserPhoto, position: number) {
@@ -98,7 +98,7 @@ export class Tab2Page {
9898
// CHANGE: Update constructor.
9999
constructor(public photoService: PhotoService, public actionSheetController: ActionSheetController) {}
100100

101-
// Same old code from before.
101+
// ...existing code...
102102

103103
// CHANGE: Add `showActionSheet` method.
104104
public async showActionSheet(photo: UserPhoto, position: number) {

0 commit comments

Comments
 (0)