ionic application startup event

You can add the lines of code to load the settings either in YourIndex.html's Controller or you can put that code under $ionicPlatform.ready.

Option 1: Run it inside your index.html's controller, because every time you open your app, this controller will be loaded.

var myApp = angular.module('myApp', ['ionic']);

myApp.config(function($stateProvider, $urlRouterProvider) {
    $urlRouterProvider.otherwise('/')

    $stateProvider.state('index', {
        url: '/',
        controller: 'IndexCtrl',
    })
});

myApp.controller('IndexCtrl', function($scope) {
    //load your settings from localStorage or DB where you saved.
});

Option 2: Call every time Ionic calls deviceReady.

var myApp = angular.module('myApp', ['ionic']);
myApp.run(function($ionicPlatform) {
    $ionicPlatform.ready(function() {
        //load your settings from localStorage or DB where you saved.
    });
});