Repository navigation
Commit fa0fa6e
authored
chore(sample): update the sample app to Angular 22 (#3845)
Carries sample/ from Angular 21 to 22 with ng update, matching what
ng new 22 generates: TypeScript 6, firebase 13, vitest 5, Node 24,
provideBrowserGlobalErrorListeners, no explicit zoneless provider
and no withIncrementalHydration (both are defaults now), the Eager
change detection the migration adds removed again so the components
run on the OnPush default.
The server app is now built by initializeBrowserOrServerApp, which
reads the ID token from the request context and releases the server
app after the render. The old factory never released it.
Calls to functions AngularFire does not wrap sit outside
runInInjectionContext, with a comment on each, so the sample shows
where the injection context is needed and where it is not.
security.allowedHosts gains localhost: Angular 22 answers 400 to
any host not on the list, so the built server could not be run
locally. Both lockfiles regenerated with npm 10.
Refs #36691 parent 74abd5a commit fa0fa6e
18 files changed
Lines changed: 7779 additions & 7702 deletions
File tree
- sample
- functions
- src
- app
- auth
- firestore
- upboats
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
4 | 8 | | |
5 | 9 | | |
6 | 10 | | |
7 | | - | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
19 | | - | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
68 | 76 | | |
69 | 77 | | |
70 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments