This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
FoodLoop-Web/pages/home/homeCtrl.js

19 lines
712 B
JavaScript
Raw Normal View History

2017-03-10 13:26:13 +00:00
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";
});