-
Notifications
You must be signed in to change notification settings - Fork 1
Migrate from constructor-based DI to inject() pattern #1176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate from constructor-based DI to inject() pattern #1176
Conversation
Co-authored-by: renemadsen <[email protected]>
Co-authored-by: renemadsen <[email protected]>
|
@copilot #23 28.86 ✘ [ERROR] TS2339: Property 'translateService' does not exist on type 'WorkflowSettingsComponent'. [plugin angular-compiler] |
- Added inject() declarations for WorkflowSettingsComponent services - Restored missing methods in WorkflowCaseEditComponent (goBack, getStatusText, getSolverName, updateWorkflowCase) - Added ngOnInit() to WorkflowCaseDeleteComponent to satisfy OnInit interface Co-authored-by: renemadsen <[email protected]>
Fixed the build errors in commit 3693d18:
All TypeScript errors should now be resolved. |
Migration Complete ✅
All 11 TypeScript files have been successfully migrated from constructor-based dependency injection to the Angular
inject()function pattern, following the reference implementation from PR #608.Changes Summary:
The migration maintains full backward compatibility while modernizing the codebase to use the latest Angular dependency injection pattern.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.