Skip to content

Commit

Permalink
feat(configuration): add methods to change config
Browse files Browse the repository at this point in the history
  • Loading branch information
KostyaDanovsky committed May 16, 2016
1 parent b548aef commit 99425ca
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/theme/theme.configProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@
},
}
};

conf.changeTheme = function(theme) {
angular.merge(conf.theme, theme)
};

conf.changeColors = function(colors) {
angular.merge(conf.colors, colors)
};

conf.$get = function () {
delete conf.$get;
return conf;
Expand Down

0 comments on commit 99425ca

Please sign in to comment.