Commit 7056b02
committed
fix: Replace inject() with constructor injection to fix production build
Changed from inject() in field initializers to traditional constructor injection
for DomSanitizer. The inject() function in field initializers can cause provider
resolution errors in production AOT builds. Removed unused DestroyRef and
takeUntilDestroyed imports.1 parent 30d6e23 commit 7056b02
1 file changed
Lines changed: 4 additions & 8 deletions
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 15 | + | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
22 | | - | |
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
| |||
46 | 43 | | |
47 | 44 | | |
48 | 45 | | |
49 | | - | |
50 | | - | |
| 46 | + | |
51 | 47 | | |
52 | 48 | | |
53 | 49 | | |
| |||
280 | 276 | | |
281 | 277 | | |
282 | 278 | | |
283 | | - | |
284 | | - | |
| 279 | + | |
| 280 | + | |
285 | 281 | | |
286 | 282 | | |
287 | 283 | | |
| |||
0 commit comments