只是想确保我理解 @Injectable(providedIn: 'root') 的语义. 在Angular 6 之前,如果我们从NPM 导入一个包含服务的模块,我们将在我们的应用程序模块中声明该模块, ...
確定! 回上一頁