min/angular/ao-framework/ao.routes.js
// inject the providers so we can have a clean little .config
inject the providers so we can have a clean little .config
inject the providers so we can have a clean little . config
function aoConfig($routeProvider, $locationProvider, $httpProvider) {
		delete $httpProvider.defaults.headers.common['X-Requested-With'];
		$locationProvider.html5Mode(false).hashPrefix('!');
		$routeProvider.when('/', {
			templateUrl: aoWP.partials + 'templates/content/home.html',
			controller: 'HomeCtrl',
			controllerAs: 'vm'
		})
		.when('/about', {
			templateUrl: aoWP.partials + 'templates/content/about.html',
			controller: 'AboutCtrl',
			controllerAs: 'vm'
		})
		.when('/developer-portfolio', {
			templateUrl: aoWP.partials + 'templates/content/portfolio.html',
			controller: 'PortfolioCtrl',
			controllerAs: 'portfolioVm',
			bindings: {
				portfolio: '<' 
			}
		})
		.when('/contact', {
			templateUrl: aoWP.partials + 'templates/content/contact.html',
			controller: 'ContactCtrl',
			controllerAs: 'contactVm'
		})
		.otherwise({
			templateUrl: aoWP.partials + 'templates/content/404.html',
			controller: 'MainCtrl',
			controllerAs: 'mvm'
		});
	}
function aoConfig ( $routeProvider , $locationProvider , $httpProvider ) { delete $httpProvider . defaults . headers . common [ 'X-Requested-With' ] ; $locationProvider . html5Mode ( false ) . hashPrefix ( '!' ) ; $routeProvider . when ( '/' , { templateUrl : aoWP . partials + 'templates/content/home.html' , controller : 'HomeCtrl' , controllerAs : 'vm' } ) . when ( '/about' , { templateUrl : aoWP . partials + 'templates/content/about.html' , controller : 'AboutCtrl' , controllerAs : 'vm' } ) . when ( '/developer-portfolio' , { templateUrl : aoWP . partials + 'templates/content/portfolio.html' , controller : 'PortfolioCtrl' , controllerAs : 'portfolioVm' , bindings : { portfolio : '<' } } ) . when ( '/contact' , { templateUrl : aoWP . partials + 'templates/content/contact.html' , controller : 'ContactCtrl' , controllerAs : 'contactVm' } ) . otherwise ( { templateUrl : aoWP . partials + 'templates/content/404.html' , controller : 'MainCtrl' , controllerAs : 'mvm' } ) ; }
inject the providers so we can have a clean little .config
inject the providers so we can have a clean little . config
// one-way binding