min/angular/controllers/ao.controllers.js
// our Main Controller holds the General Settings of ALL controllers
our Main Controller holds the General Settings of ALL controllers
our Main Controller holds the General Settings of ALL controllers
function MainCtrl($http, $location, aoGenFunctions, aoInfo) {
		$(function(){
			aoGenFunctions.backToTop();
		});
		var mvm = this; 
		mvm.shortPath = aoWP.partials; 
		var aoURL = aoWP.site_url; 
		$http({
			method: 'GET',
			url: aoURL
		})
		.then(successCallback, errorCallback);
		function successCallback(response){ 
			$('.modalContainer').removeClass('modalLoader');
			console.log('page load works: ' + aoURL);
		}
		function errorCallback(error){
			$('.modalContainer').removeClass('modalLoader'); 
			console.log('error: ' + stringFunction(error));
		};
		return mvm;
	}
function MainCtrl ( $http , $location , aoGenFunctions , aoInfo ) { $ ( function ( ) { aoGenFunctions . backToTop ( ) ; } ) ; var mvm = this ; mvm . shortPath = aoWP . partials ; var aoURL = aoWP . site_url ; $http ( { method : 'GET' , url : aoURL } ) . then ( successCallback , errorCallback ) ; function successCallback ( response ) { $ ( '.modalContainer' ) . removeClass ( 'modalLoader' ) ; console . log ( 'page load works: ' + aoURL ) ; } function errorCallback ( error ) { $ ( '.modalContainer' ) . removeClass ( 'modalLoader' ) ; console . log ( 'error: ' + stringFunction ( error ) ) ; } ; return mvm ; }
our Main Controller holds the General Settings of ALL controllers
our Main Controller holds the General Settings of ALL controllers
// main view model // our functions.php creates these variables, and we translate it into a shortPath // site base directory // gets the website, and it shows a loading modal before the site is loaded to reduce how much FOUC is seen // success? remove the modal // error? remove the modal, but say why in the console