pranayaryal
8/17/2017 - 7:57 PM

Angular Initializing example

Angular Initializing example

//APP CONFIG

angular
	.module('sarApp', [
		'mgo-angular-wizard',
		'google.places',
		'ui.bootstrap.datetimepicker',
		'textAngular',
		'toastr',
		'angucomplete-alt',
		'ngMaterial',
		'ngMessages'
	]).config(['$controllerProvider', function($controllerProvider) { // Had to do this because of this: http://stackoverflow.com/questions/25111831/controller-not-a-function-got-undefined-while-defining-controllers-globally
		$controllerProvider.allowGlobals();
	}]).config(function($mdThemingProvider) {
		$mdThemingProvider.theme('default')
			.primaryPalette('blue')
			.accentPalette('red');
	});

angular
	.module('sarFrontApp', [
		'mgo-angular-wizard',
		'toastr'
	]).config(['$controllerProvider', function($controllerProvider) { // Had to do this because of this: http://stackoverflow.com/questions/25111831/controller-not-a-function-got-undefined-while-defining-controllers-globally
		$controllerProvider.allowGlobals();
	}]);