-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapp.js
More file actions
27 lines (18 loc) · 844 Bytes
/
app.js
File metadata and controls
27 lines (18 loc) · 844 Bytes
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
(function() {
var main = angular.module('main', [ 'ngRoute', 'ui.bootstrap', 'ngSanitize', 'ngCookies', 'angular-loading-bar','fnlf-login', 'angled-navbar.directives','config', 'fnlf-services' ]);
main.config([ 'cfpLoadingBarProvider',
function(cfpLoadingBarProvider) {
cfpLoadingBarProvider.includeBar = true;
cfpLoadingBarProvider.includeSpinner = true;
} ]);
angular.module("main").controller("mainController",
['$scope', '$rootScope','$window', 'Appswitcher', 'RestService','$http','ENV',
function($scope, $rootScope,$window, Appswitcher, RestService, $http,ENV) {
$window.ga('create', ENV.googleAnalyticsId, 'auto');
$window.ga('send', 'pageview', '/');
// Menus
Appswitcher.getApps();
$rootScope.nav = {toolbar: [], menus: []}; //reset
$rootScope.nav.brand = 'FNLF Tjenester';
}]);
})();