Skip to content

Commit 8a1b684

Browse files
committed
References of interface Photo to UserPhoto to match sample Angular project
1 parent 09700b5 commit 8a1b684

File tree

10 files changed

+14
-14
lines changed

10 files changed

+14
-14
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ After taking a photo, it disappears right away. We need to display it within our
7676

7777
## Displaying Photos
7878

79-
Outside of the `PhotoService` class definition (the very bottom of the file), create a new interface, `Photo`, to hold our photo metadata:
79+
Outside of the `PhotoService` class definition (the very bottom of the file), create a new interface, `UserPhoto`, to hold our photo metadata:
8080

8181
```tsx
82-
export interface Photo {
82+
export interface UserPhoto {
8383
filepath: string;
8484
webviewPath: string;
8585
}
@@ -89,7 +89,7 @@ Back at the top of the file, define an array of Photos, which will contain a ref
8989

9090
```tsx
9191
export class PhotoService {
92-
public photos: Photo[] = [];
92+
public photos: UserPhoto[] = [];
9393

9494
// other code
9595
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Begin by defining a constant variable that will act as the key for the store:
1414

1515
```tsx
1616
export class PhotoService {
17-
public photos: Photo[] = [];
17+
public photos: UserPhoto[] = [];
1818
private PHOTO_STORAGE: string = 'photos';
1919

2020
// other code

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Import the Ionic [Platform API](https://ionicframework.com/docs/angular/platform
1616
import { Platform } from '@ionic/angular';
1717

1818
export class PhotoService {
19-
public photos: Photo[] = [];
19+
public photos: UserPhoto[] = [];
2020
private PHOTO_STORAGE: string = 'photos';
2121
private platform: Platform;
2222

docs/developer-resources/guides/first-app-v3/creating-photo-gallery-device-storage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Then, create a Photos array to represent our photo gallery:
4343
```Javascript
4444
export class PhotoProvider {
4545

46-
public photos: Photo[] = [];
46+
public photos: UserPhoto[] = [];
4747

4848
constructor() { }
4949
}

docs/developer-resources/guides/first-app-v4/creating-photo-gallery-device-storage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Then, create a Photos array to represent our photo gallery:
3838
```Javascript
3939
export class PhotoService {
4040

41-
public photos: Photo[] = [];
41+
public photos: UserPhoto[] = [];
4242

4343
constructor() { }
4444
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ After taking a photo, it disappears right away. We need to display it within our
7676

7777
## Displaying Photos
7878

79-
Outside of the `PhotoService` class definition (the very bottom of the file), create a new interface, `Photo`, to hold our photo metadata:
79+
Outside of the `PhotoService` class definition (the very bottom of the file), create a new interface, `UserPhoto`, to hold our photo metadata:
8080

8181
```tsx
82-
export interface Photo {
82+
export interface UserPhoto {
8383
filepath: string;
8484
webviewPath: string;
8585
}
@@ -89,7 +89,7 @@ Back at the top of the file, define an array of Photos, which will contain a ref
8989

9090
```tsx
9191
export class PhotoService {
92-
public photos: Photo[] = [];
92+
public photos: UserPhoto[] = [];
9393

9494
// other code
9595
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Begin by defining a constant variable that will act as the key for the store:
1414

1515
```tsx
1616
export class PhotoService {
17-
public photos: Photo[] = [];
17+
public photos: UserPhoto[] = [];
1818
private PHOTO_STORAGE: string = 'photos';
1919

2020
// other code

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Import the Ionic [Platform API](https://ionicframework.com/docs/angular/platform
1616
import { Platform } from '@ionic/angular';
1717

1818
export class PhotoService {
19-
public photos: Photo[] = [];
19+
public photos: UserPhoto[] = [];
2020
private PHOTO_STORAGE: string = 'photos';
2121
private platform: Platform;
2222

versioned_docs/version-v5/developer-resources/guides/first-app-v3/creating-photo-gallery-device-storage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Then, create a Photos array to represent our photo gallery:
4343
```Javascript
4444
export class PhotoProvider {
4545

46-
public photos: Photo[] = [];
46+
public photos: UserPhoto[] = [];
4747

4848
constructor() { }
4949
}

versioned_docs/version-v5/developer-resources/guides/first-app-v4/creating-photo-gallery-device-storage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Then, create a Photos array to represent our photo gallery:
3838
```Javascript
3939
export class PhotoService {
4040

41-
public photos: Photo[] = [];
41+
public photos: UserPhoto[] = [];
4242

4343
constructor() { }
4444
}

0 commit comments

Comments
 (0)