Skip to content

Commit effdaaa

Browse files
docs(angular): update code blocks
1 parent a21d5e8 commit effdaaa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ Return to `photo.service.ts`.
128128
Outside of the `PhotoService` class definition (the very bottom of the file), create a new interface, `UserPhoto`, to hold our photo metadata:
129129

130130
```tsx
131+
export class PhotoService {
132+
// Same old code from before.
133+
}
134+
135+
// CHANGE: Add the interface.
131136
export interface UserPhoto {
132137
filepath: string;
133138
webviewPath?: string;
@@ -138,6 +143,7 @@ Above the constructor, define an array of `UserPhoto`, which will contain a refe
138143

139144
```tsx
140145
export class PhotoService {
146+
// CHANGE: Add the photos array.
141147
public photos: UserPhoto[] = [];
142148

143149
constructor() {}

0 commit comments

Comments
 (0)