Skip to content

Commit 68ca2c7

Browse files
docs(angular): add missing code
Co-authored-by: Brandy Smith <[email protected]>
1 parent 1122ed6 commit 68ca2c7

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ import { Camera, CameraResultType, CameraSource, Photo } from '@capacitor/camera
4444
import { Filesystem, Directory } from '@capacitor/filesystem';
4545
import { Preferences } from '@capacitor/preferences';
4646

47+
@Injectable({
48+
providedIn: 'root',
49+
})
4750
export class PhotoService {
4851
// CHANGE: Add the gallery method
4952
public async addNewToGallery() {

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ import { Preferences } from '@capacitor/preferences';
2929
// CHANGE: Add import
3030
import { Platform } from '@ionic/angular';
3131

32+
@Injectable({
33+
providedIn: 'root',
34+
})
3235
export class PhotoService {
3336
public photos: UserPhoto[] = [];
3437

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ import { Camera, CameraResultType, CameraSource, Photo } from '@capacitor/camera
4444
import { Filesystem, Directory } from '@capacitor/filesystem';
4545
import { Preferences } from '@capacitor/preferences';
4646

47+
@Injectable({
48+
providedIn: 'root',
49+
})
4750
export class PhotoService {
4851
// CHANGE: Add the gallery method
4952
public async addNewToGallery() {

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ import { Preferences } from '@capacitor/preferences';
2929
// CHANGE: Add import
3030
import { Platform } from '@ionic/angular';
3131

32+
@Injectable({
33+
providedIn: 'root',
34+
})
3235
export class PhotoService {
3336
public photos: UserPhoto[] = [];
3437

0 commit comments

Comments
 (0)