client/assets/scripts/services/settings.js
function () {
        var self = this;
        $http.get(settingsApi)
          .success(function (data) {
            self.set(data);
            $timeout(function () {
              self.loaded = true;
            });
          })
          .error(function () {
            self.reset();
            $timeout(function () {
              self.loaded = true;
            });
          });
      }
function () {
        var self = this;
        $http.get(settingsApi)
          .success(function (data) {
            self.set(data);
            $timeout(function () {
              self.loaded = true;
            });
          })
          .error(function () {
            self.reset();
            $timeout(function () {
              self.loaded = true;
            });
          });
      }
function ( ) { var self = this ; $http . get ( settingsApi ) . success ( function ( data ) { self . set ( data ) ; $timeout ( function ( ) { self . loaded = true ; } ) ; } ) . error ( function ( ) { self . reset ( ) ; $timeout ( function ( ) { self . loaded = true ; } ) ; } ) ; }
Load settings from server
Load settings from server