Blame view
app/partials/main/main.controller.js
1.07 KB
feacde5ff
|
1 2 3 4 5 |
(function() { 'use strict' angular.module('acufuel') |
429786996
|
6 |
.controller('MainController', [ '$scope', '$filter','$rootScope','$state', '$window', MainController]); |
feacde5ff
|
7 |
|
429786996
|
8 |
function MainController($scope, $filter, $rootScope,$state, $window) { |
dd378d69f
|
9 |
|
e196b9b74
|
10 |
$scope.currentUserName = JSON.parse(localStorage.getItem('currentUserName')); |
429786996
|
11 |
|
da40330c8
|
12 |
// Flight Tracking page code |
bfb1a2a46
|
13 |
/*$scope.reloadPage = function(){ |
429786996
|
14 15 16 17 18 19 |
console.log("if",$state) console.log("=========state name",$state.current.name); // $state.go('app.flightTracking', {}, {reload: 'app.flightTracking'}) //$state.go($state.current, {}, {reload: true}); if($state.current.name != "app.flightTracking"){ |
bfb1a2a46
|
20 |
$window.location.href = '/#!/flightTracking'; |
429786996
|
21 22 23 24 25 26 27 28 |
setInterval(function(){ console.log("come") $window.location.reload() },10); }else{ console.log("flight tracking state found====="); $window.location.reload(); } |
bfb1a2a46
|
29 30 |
}*/ |
feacde5ff
|
31 |
} |
da40330c8
|
32 |
|
feacde5ff
|
33 |
})(); |
da40330c8
|
34 |