Liu Ting Chun
1 min readSep 7, 2020

--

Thanks for your response.

It depends on the scope where the service is provided. Any component within the scope will get the same instance by default. If you want every component in your application to get the same instance, you can provide the service at the root module. I am not sure if I understand your question correctly. Please let me know if I didn’t get it right.

--

--

Liu Ting Chun
Liu Ting Chun

Written by Liu Ting Chun

Web developer from Hong Kong. Most interested in Angular and Vue. Currently working on a Nuxt.js + NestJS project.

Responses (1)