Multiple .config statements in app.js

Hi All - I’m hoping that this isn’t totally obtuse, but I’m a brand new angular/ionic user (it’s beautiful btw!) and google searches are failing me.

Anyway I started coding from a sampler that uses routes in app.js which works, e.g.:

angular.module('i-apps-of', ['ionic', '', 'i-apps-of.controllers'])
.config(function ($stateProvider, $urlRouterProvider) {

      (routing stuff...)

And then I added the following (and moved the semicolon)

.config(function($ionicConfigProvider) {  

But this code seems to be ignored (the back button still works but it’s not getting rid of the text). I suspect it’s because the calls into config don’t know if it’s the state provider or the ionic config provider. How could I overcome this? Or is it correct syntax and probably something else happening?

Thanks in advance!