You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
\begin{figure}[H]
|
|
|
|
\begin{lstlisting}[language=JavaScript]
|
|
|
|
@Injectable()
|
|
|
|
export class MyService {
|
|
|
|
constructor(
|
|
|
|
parentService: ParentService
|
|
|
|
) {
|
|
|
|
// ...
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@Module({
|
|
|
|
imports: [
|
|
|
|
// Comme ParentModule exporte ParentService,
|
|
|
|
// ce service est facilement rendu disponible ici pour MyService:
|
|
|
|
ParentModule
|
|
|
|
],
|
|
|
|
providers: [
|
|
|
|
MyService
|
|
|
|
]
|
|
|
|
})
|
|
|
|
export class MyModule {}
|
|
|
|
\end{lstlisting}
|
|
|
|
|
|
|
|
\centering
|
|
|
|
\includegraphics{nestjs2}
|
|
|
|
\caption{Exemple d'import de dépendances avec NestJS (suite de \ref{nestjs1})}
|
|
|
|
\label{nestjs2}
|
|
|
|
\end{figure}
|