You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8d649af
Browse filesBrowse the repository at this point in the historyBrowse files
docs: align tutorial, quickstart, and testing pages with the updated starters (#4805)
* docs: align tutorial, quickstart, and testing pages with the updated starters
* docs: fix review findings in tutorial, quickstart, and testing pages
* docs: register the tabs icon in Angular and key Vue photos by file path
* docs: explain the Camera.getPhoto options in the Your First App tutorials
* docs: pass native photo data straight to the filesystem in React and Vue
* docs(vue): remove the e2e type check when converting to JavaScript
---------
Co-authored-by: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>
public environmentInjector =inject(EnvironmentInjector);
263
+
264
+
constructor() {
265
+
// CHANGE: Register the `images` icon instead of `ellipse`
266
+
addIcons({ triangle, images, square });
267
+
}
268
+
}
269
+
```
270
+
246
271
That’s just the start of all the cool things we can do with Ionic. Up next, implement camera taking functionality on the web, then build it for iOS and Android.
Copy file name to clipboardExpand all lines: docs/angular/your-first-app/4-loading-photos.mdx
+21-19Lines changed: 21 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ export class PhotoService {
33
33
Next, at the end of the `addNewToGallery()` method, add a call to `Preferences.set()` to save the `photos` array. By adding it here, the `photos` array is stored each time a new photo is taken. This way, it doesn’t matter when the app user closes or switches to a different app - all photo data is saved.
34
34
35
35
```ts
36
-
import { Injectable } from'@angular/core';
36
+
import { Injectable, signal } from'@angular/core';
0 commit comments