如果想要能够改变它的值,必须使用 mut 关键字使其可变。
它这里没有使用mut关键字?
如果想要能够改变它的值,必须使用 mut 关键字使其可变。
它这里没有使用mut关键字?
fix_incorrect_order 函数在 back_of_house 模块中,所以我们可以使用 super 进入 back_of_house 父模块,也就是本例中的 crate 根。
这个super是一直进入到最顶级的模块吗
transforms the resulting HTTP responses into Observables.
observables?
options object that is only supplied at run-time
为什么options对象只在runtime执行
constructor(private catsService: CatsService) {}
这就是通过constructor在注入依赖吗
the providers that will be instantiated by the Nest injector
这里的providers?
cat.interface.ts
这个是什么
include the HTTP_OPTIONS custom token. P
自定义的provider就要在inject的时候传入token吗
'CONNECTION'
这个就是token
the registration process.
所以这个注册的过程是
The @Injectable() decorator attaches metadata, which declares that CatsService is a class that can be managed by the Nest IoC container.
这是什么意思