I had a problem with caching, possibly when caching when switching from grand-child ( /dashboard/1/production) to parent ( /dashboard).
Below are some screenshots:




Elections ie Delphi-UIand productionshould not be saved.
Below is my snippet application config:
$stateProvider
.state('root', {
url: '/',
views: {
'header': {
templateUrl: 'ngapp/templates/header.html'
}
}
})
.state('root.dashboard', {
url: 'dashboard',
views: {
'content@' : {
templateUrl: 'ngapp/home/templates/dashboard.html',
controller: 'DashboardCtrl',
controllerAs: 'vm'
}
}
})
.state('root.dashboard.app', {
url: '/{id:int}',
views: {
'body@root.dashboard' : {
templateUrl: 'ngapp/home/templates/dashboard-body.html',
controller: 'DashboardBodyCtrl'
}
}
})
.state('root.dashboard.app.env', {
url: '/:name',
views: {
'body@root.dashboard' : {
templateUrl: 'ngapp/home/templates/env-content.html',
controller: 'EnvContentCtrl'
}
}
});
And DashboardCtrl:
controllers.controller('DashboardCtrl', ['$scope', '$http', '$state', '$timeout', 'appsFactory', function($scope, $http, $state, $timeout, appsFactory) {
$scope.envs = [];
$scope.deps = [];
$scope.envBtnText = $scope.appBtnText = "Choose here";
$scope.headerTitle = "Environment Configuration And Management";
$scope.appStatus = {
isopen: false
};
$scope.envStatus = {
isopen: false
};
appsFactory.list(function(data) {
$scope.apps = data;
});
}]);
Full controller code: http://goo.gl/BWtiU5
The project is posted here: https://github.com/budhrg/atlantis-dashboard
In addition, to go to Atlantis UI(dashboard)non-reset data like
$scope.envs, $scope.deps, $scope.envBtnText, And $scope.appBtnText.
What could be here? Did I miss something?