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 <[email protected]> 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({
