feat($ionicConfig): chaining config properties

This commit is contained in:
Adam Bradley
2014-11-12 11:19:08 -06:00
parent 3c4f15c748
commit 786c6d9749
2 changed files with 16 additions and 0 deletions

View File

@@ -414,6 +414,7 @@ IonicModule
providerObj[namespace] = function(newValue) {
if (arguments.length) {
configObj[namespace] = newValue;
return providerObj;
}
if (configObj[namespace] == PLATFORM) {
// if the config is set to 'platform', then get this config's platform value