I have this structure:
App/dashboard/dashboard.module.ts
App/dashboard/dashboard.component.ts
App/dashboard/dashboard.component.html
App/dashboard/routes.ts
App/app.module.ts
App/app.component.ts
App/app.component.html
Inside the app/dashboard folder there is another sub component. On the dashboard.component.html are the
With this approach, how to import a service that I can use on the sub components of dashboard? If I use [providers] on app.module.ts can it be accessed on the rest of the modules/components? And, if I want a new component at the same level of app.module.ts, can I use the router-outlet of the dashboard.component?