(function(){

  'use strict'

angular.module('loginApp', [
  'angular-click-outside',
  'ngSanitize',
  'apiUserAuthModule'
])

.config(['$locationProvider', function($locationProvider) {
	$locationProvider.html5Mode({enabled:true,requireBase:false});
}])
.constant("IZ_CONSTANTS",IZConstants)
.run(function($rootScope,IZ_CONSTANTS) {
	$rootScope.izConstants = IZ_CONSTANTS;

  /* Für die IZ muss das hier eingespielt werden
	//Scroll to Hash Elements
	var currentHash = window.location.hash;
	var modifiedHash = "";
    if(currentHash != "") {
    	//Workaround to ignore angular hashes
    	modifiedHash = currentHash.replace("/", "").replace("?", "").replace("=", "").replace("&", "");
    	try {
    		var element = document.getElementById(modifiedHash.replace("#", "")); // Zum suchen des Elements das # entfernen 
    		if(element) {
        		$("html, body").scrollTop($(modifiedHash).offset().top - 50);
        	}
    	}
    	catch(err) {
   	    	// Eigentlich nicht notwendig, wenn es sich um eine reine Angular app handelt. (Auf Textooseiten würden pagelinks von der loginApp abgefangen werden.
    	}
    }
*/
});
  
  
  
}());
