Liu Ting Chun
1 min readSep 8, 2020

--

Hi, I think the assumption you proposed may not be applicable to all projects. There are many situations that root scope is not preferred. Here I have an example on using non root level scope to implement interdependent components:

Besides, even if the service has already been provided at the root level, we can still override it by re-providing it again later for code reuse.

--

--

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.

No responses yet