app.controller('homeCtrl', function($scope) {
// $stateProvider.state('contacts', {
// template: '
My Contacts
'
// }) $scope.username = "user";
$scope.controllby = "home";
// $rootScope.userType = "admin";
// $scope.getViewByUserType = function(){
// return {
// '': {templateUrl: 'pages/home/home.html',controller:'adminCtrl'}, // default view
// 'header@home-admin': {templateUrl:'pages/admin/header.admin.html'}, // nested view
// 'sidebar@home-admin': {templateUrl:'pages/admin/sidebar.admin.html'},
// 'main@home-admin': {templateUrl:'pages/admin/main.admin.html'},
// }
// }
// $scope.header = "i m not a header";
});