1(function() { 2'use strict'; 3 4angular.module('app').service('alert', function alert($rootScope, $timeout) { 5 var alertTimeout; 6 7 // $rootScope.$on('$stateChangeStart', 8 // function(event, toState, toParams, fromState, fromParams) { 9 // $rootScope.alert.hide = true; 10 // $rootScope.alert.show = false; 11 // console.log($rootScope.alert.show); 12 // }) 13 // $rootScope.$on('$stateChangeSuccess', 14 // function(event, toState, toParams, fromState, fromParams) { 15 // $timeout.cancel(alertTimeout); 16 // //$rootScope.alert.hide = false; 17 // }) 18 19 return function(type, title, message, timeout) { 20 // $rootScope.alert = { 21 // hasBeenShown: true, 22 // show: true, 23 // type: type, 24 // message: message, 25 // title: title 26 // }; 27 // $timeout.cancel(alertTimeout); 28 // alertTimeout = $timeout(function() { 29 // $rootScope.alert.show = false; 30 // }, timeout || 2000); 31 // console.log('SERVICE alert:'+ title+' - ' + message); 32 toastr[type](message,title); 33 34 } 35 36 37}); 38 39})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.