错误:src/app/app.component.ts:43:19 - 错误 TS2339:“Config”类型上不存在属性“set”。 [错误] [错误] 43 this.config.set('backButtonText', this.translateService.instant('button.back'));
这是代码
this.config.set('backButtonText', this.translateService.instant('button.back'));
我将 ionic 5 更新为 6,Angular 版本为 13
我在应用程序组件中声明了一个变量并使用服务
this.dataService.updateBackButtonText('button.back';
,订阅每个子组件。