refactor(angular): remove Config.set() method (#22918)

BREAKING CHANGE: The `Config.set()` method has been removed. See https://ionicframework.com/docs/angular/config for examples on how to set config globally, per-component, and per-platform.
This commit is contained in:
Liam DeBeasi
2021-02-12 13:54:34 -05:00
committed by GitHub
parent 72466231fd
commit 9e05891736
4 changed files with 11 additions and 10 deletions

View File

@@ -63,7 +63,7 @@ import { AlertComponent } from './alert/alert.component';
AppRoutingModule,
FormsModule,
ReactiveFormsModule,
IonicModule.forRoot(),
IonicModule.forRoot({ keyboardHeight: 12345 }),
],
entryComponents: [
ModalExampleComponent,

View File

@@ -69,7 +69,6 @@ export class ProvidersComponent {
// test config
this.isTesting = config.getBoolean('_testing');
config.set('keyboardHeight', 12345);
this.keyboardHeight = config.getNumber('keyboardHeight');
zone.runOutsideAngular(() => {