Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update the image regarding the "providers" section. #2925

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/components.md → content/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Providers are a fundamental concept in Nest. Many of the basic Nest classes may be treated as a provider – services, repositories, factories, helpers, and so on. The main idea of a provider is that it can be **injected** as a dependency; this means objects can create various relationships with each other, and the function of "wiring up" these objects can largely be delegated to the Nest runtime system.

<figure><img src="/assets/Components_1.png" /></figure>
<figure><img src="/assets/Providers_1.png" /></figure>

In the previous chapter, we built a simple `CatsController`. Controllers should handle HTTP requests and delegate more complex tasks to **providers**. Providers are plain JavaScript classes that are declared as `providers` in a [module](/modules).

Expand Down
4 changes: 2 additions & 2 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
import { HomepageComponent } from './homepage/homepage.component';
import { ApplicationContextComponent } from './homepage/pages/application-context/application-context.component';
import { ComponentsComponent } from './homepage/pages/components/components.component';
import { ProvidersComponent } from './homepage/pages/providers/providers.component';
import { ControllersComponent } from './homepage/pages/controllers/controllers.component';
import { CustomDecoratorsComponent } from './homepage/pages/custom-decorators/custom-decorators.component';
import { WhoUsesComponent } from './homepage/pages/discover/who-uses/who-uses.component';
Expand Down Expand Up @@ -44,7 +44,7 @@ const routes: Routes = [
},
{
path: 'providers',
component: ComponentsComponent,
component: ProvidersComponent,
data: { title: 'Providers' },
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { MenuItemComponent } from './homepage/menu/menu-item/menu-item.component
import { MenuComponent } from './homepage/menu/menu.component';
import { NewsletterComponent } from './homepage/newsletter/newsletter.component';
import { ApplicationContextComponent } from './homepage/pages/application-context/application-context.component';
import { ComponentsComponent } from './homepage/pages/components/components.component';
import { ProvidersComponent } from './homepage/pages/providers/providers.component';
import { ControllersComponent } from './homepage/pages/controllers/controllers.component';
import { CustomDecoratorsComponent } from './homepage/pages/custom-decorators/custom-decorators.component';
import { WhoUsesComponent } from './homepage/pages/discover/who-uses/who-uses.component';
Expand Down Expand Up @@ -49,7 +49,7 @@ import { SharedModule } from './shared/shared.module';
FirstStepsComponent,
ControllersComponent,
BasePageComponent,
ComponentsComponent,
ProvidersComponent,
ModulesComponent,
MiddlewaresComponent,
PipesComponent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BasePageComponent } from '../page/page.component';

@Component({
selector: 'app-components',
templateUrl: './components.component.html',
templateUrl: './providers.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ComponentsComponent extends BasePageComponent {}
export class ProvidersComponent extends BasePageComponent {}
Binary file added src/assets/Providers_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading