smnbbrv / ngx-grpc

Angular gRPC framework
MIT License
238 stars 34 forks source link

How to properly integrate ngx-grpc in Angular 17 with Standalone Components #116

Open MichaelGiger opened 1 month ago

MichaelGiger commented 1 month ago

Hi

I’m currently working on an Angular 17 project using standalone components and I’m trying to integrate ngx-grpc for gRPC communication. Since Angular standalone components don’t support the .forRoot() method, I’m unsure of how to properly configure the gRPC client.

I’ve followed the usual steps, but I’m facing issues when trying to manually configure the gRPC services. Here are the details:

Could you please guide me on the correct way to manually provide the gRPC client configuration, including how to properly set up the GRPC_CLIENT_FACTORY or any other necessary services in a standalone component?

Thank you in advance for your help!

Best regards, Michael