Skip to content

Commit

Permalink
docs(angular): add type assertion for your first app code snippet (#2910
Browse files Browse the repository at this point in the history
)

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.
  • Loading branch information
josh33 authored Jul 13, 2023
1 parent 4a53559 commit 4d8f605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/angular/your-first-app/2-taking-photos.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Over in the `addNewToGallery` function, add the newly captured photo to the begi

this.photos.unshift({
filepath: "soon...",
webviewPath: capturedPhoto.webPath
webviewPath: capturedPhoto.webPath!
});
}
```
Expand Down

1 comment on commit 4d8f605

@vercel
Copy link

@vercel vercel bot commented on 4d8f605 Jul 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ionic-docs – ./

ionic-docs-gqykycf8t.vercel.app
ionic-docs-git-main-ionic1.vercel.app
ionic-docs-ionic1.vercel.app

Please sign in to comment.