You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> warning**Hint** Following best practices, we declared the custom provider in the separated file which has a `*.providers.ts` suffix.
45
+
> info**Hint** Following best practices, we declared the custom provider in the separated file which has a `*.providers.ts` suffix.
46
46
47
47
Then, we need to export these providers to make them **accessible** for the rest part of the application.
48
48
@@ -94,7 +94,7 @@ export const catsProviders = [
94
94
];
95
95
```
96
96
97
-
> **Notice** In the real-world applications you should avoid **magic strings**. Both `CATS_REPOSITORY` and `SEQUELIZE` should be kept in the separated `constants.ts` file.
97
+
> warning **Warning** In the real-world applications you should avoid **magic strings**. Both `CATS_REPOSITORY` and `SEQUELIZE` should be kept in the separated `constants.ts` file.
98
98
99
99
In Sequelize, we use static methods to manipulate the data, and thus we created an **alias** here.
100
100
@@ -140,4 +140,4 @@ import { DatabaseModule } from '../database/database.module';
140
140
exportclassCatsModule {}
141
141
```
142
142
143
-
> warning**Hint** Do not forget to import the `CatsModule` into the root `ApplicationModule`.
143
+
> info**Hint** Do not forget to import the `CatsModule` into the root `ApplicationModule`.
0 commit comments