mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
global config updates
This commit is contained in:
@ -36,13 +36,6 @@ export class IonicApp {
|
||||
return this.components[key];
|
||||
}
|
||||
|
||||
config(val) {
|
||||
if (arguments.length) {
|
||||
this._config = val;
|
||||
}
|
||||
return this._config;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create and append the given component into the root
|
||||
* element of the app.
|
||||
@ -152,7 +145,7 @@ export function ionicBootstrap(ComponentType, config) {
|
||||
config.setPlatform(Platform);
|
||||
|
||||
// make the config global
|
||||
IonicConfig.setGlobal(config);
|
||||
IonicConfig.global = config;
|
||||
|
||||
// config and platform settings have been figured out
|
||||
// apply the correct CSS to the app
|
||||
|
Reference in New Issue
Block a user