Skip to content

Commit 4d8f605

Browse files
authored
docs(angular): add type assertion for your first app code snippet (#2910)
Was getting an error: "Type 'string | undefined' is not assignable to type 'string'." Adding an exclamation point at the end of line 111 solves it.
1 parent 4a53559 commit 4d8f605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Over in the `addNewToGallery` function, add the newly captured photo to the begi
108108

109109
this.photos.unshift({
110110
filepath: "soon...",
111-
webviewPath: capturedPhoto.webPath
111+
webviewPath: capturedPhoto.webPath!
112112
});
113113
}
114114
```

0 commit comments

Comments
 (0)