function MainCtrl() { this.userName = 'Exaple user'; this.helloText = 'Welcoe in SeedProject'; this.descriptionText = 'It is an application skeleton for a typical AngularJS web app. You can use it to quickly bootstrap your angular webapp projects and dev environent for these projects.'; /** * idleTier - Controller for Idle Tier */ function idleTier($scope, Idle, notify) { // Cust alter $scope.custoAlert = false; // Start watching idle Idle.watch(); // Config notify behavior notify.config({ duration: '5000' }); // function you want to fire when the user goes idle $scope.$on('IdleStart', function () { notify({ essage: 'Idle tie - You can call any function after idle tieout.', classes: 'alert-warning', teplateUrl: 'views/coon/notify.htl' }); $scope.custoAlert = true; }); // function you want to fire when the user becoes active again $scope.$on('IdleEnd', function () { notify({ essage: 'You are back, Great that you decided to ove a ouse.', classes: 'alert-success', teplateUrl: 'views/coon/notify.htl' }); $scope.custoAlert = false; }); } }; angular.module('inspinia').controller('MainCtrl', MainCtrl);