19 lines
712 B
JavaScript
19 lines
712 B
JavaScript
|
app.controller('homeCtrl', function($scope) {
|
||
|
|
||
|
// $stateProvider.state('contacts', {
|
||
|
// template: '<h1>My Contacts</h1>'
|
||
|
// }) $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";
|
||
|
});
|