Angular: registering providers from library using standalone approach

Discussão em 'Angular' iniciado por Miklós Szabó, Setembro 17, 2024.

  1. I have bootstrapped an Angular v18 workspace with an application and a library. I've created a service in the library and wanted to use that in the application. Everything organized with the standalone approach, without NgModules.

    Previously I've registered the providers in the library's NgModule and was importing it in the application with the module's forRoot(...) method. How can I achieve the same without NgModules (using the standalone approach)?

    Continue reading...

Compartilhe esta Página