You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2026/03/24 11:17:33 UTC
(streampipes) 04/24: migrate apidocs to inject()
This is an automated email from the ASF dual-hosted git repository.
zehnder pushed a commit to branch 4287-migrate-angular-ui-from-constructor-injection-to-inject
in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit d9b29a414bd0344c7f92bb1dda25238d9b469d25
Author: Philipp Zehnder <te...@users.noreply.github.com>
AuthorDate: Tue Mar 24 09:56:44 2026 +0100
migrate apidocs to inject()
---
ui/src/app/apidocs/apidocs.component.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ui/src/app/apidocs/apidocs.component.ts b/ui/src/app/apidocs/apidocs.component.ts
index b644d7dc85..3e6d47a753 100644
--- a/ui/src/app/apidocs/apidocs.component.ts
+++ b/ui/src/app/apidocs/apidocs.component.ts
@@ -16,7 +16,7 @@
*
*/
-import { Component, ElementRef, OnInit } from '@angular/core';
+import { Component, ElementRef, OnInit, inject } from '@angular/core';
import { SwaggerUIBundle } from 'swagger-ui-dist';
@Component({
@@ -25,7 +25,7 @@ import { SwaggerUIBundle } from 'swagger-ui-dist';
styleUrls: ['./apidocs.component.scss'],
})
export class ApidocsComponent implements OnInit {
- constructor(private el: ElementRef) {}
+ private el = inject(ElementRef);
ngOnInit(): void {
SwaggerUIBundle({