Non-Single Communication Services

I have a file upload component that I use several times in the same view. I have a service that manages metadata about each uploaded file. When I add files to one component, all components begin to be updated, and not just files with added files.

Is there a way to add a new instance of the service for each displayed component?

+4
source share
1 answer

According to the documents :

The provision of services at the component level ensures that each component instance receives its own private service instance.

, providers , .

+4

Source: https://habr.com/ru/post/1674324/


All Articles