forked from ceohockey60/hilbert-insurance-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainController.js
30 lines (26 loc) · 1.03 KB
/
MainController.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
* Created by KX on 12/21/16.
*/
'use strict';
var hilbertBotApp = angular.module('hilbertBotApp', ['ngRoute', 'ngMaterial', 'ngResource']);
hilbertBotApp.config(['$routeProvider',
function($routeProvider){
$routeProvider.
when('/', {
templateUrl: 'components/home/home_template.html',
controller: 'HomeController'
}).
when('/dev', {
templateUrl: 'components/dev/dev_template.html',
controller: 'DevController'
}).
otherwise({
redirectTo: '/'
});
}]);
hilbertBotApp.controller('MainController', ['$scope', '$location', '$resource', '$rootScope', '$http', '$mdDialog',
function($scope, $location, $resource, $rootScope, $http, $mdDialog) {
$scope.main = {};
$scope.main.title = "Hilbert Insurance | Your 24/7 Helper for All Your Health Insurance Needs.";
$scope.main.loggedIn = false; //boolean indicating it user is logged in; default value is false
}]);