1(function(){ 2 3var app = angular.module('camerdata'); 4 5 app.controller('a24EmailTextController', function($scope, comunications, StorageService, $location, sharedProperties, $state, $document, $translate) { 6 7 $scope.errorLogin = false; 8 9 10 $scope.init = function(){ 11 12 comunications.a24GetEmailText().then(function(response){ 13 14 $scope.textEmail = response.data.data.text; 15 }); 16 }; 17 18 $scope.updateText = function(){ 19 20 comunications.a24UpdateEmailText($scope.textEmail).then(function(response){ 21 22 $scope.textEmail = response.data.data.text; 23 24 alert('Actualizado correctamente!') 25 26 }); 27 28 }; 29 30 31 32 33 $scope.login = function(){ 34 35 comunications.a24Login($scope.username, $scope.pass).then(function(response){ 36 37 if (!response) 38 { 39 $scope.errorLogin = true; 40 return false; 41 } 42 43 StorageService.setToken(response.data.data.access_token); 44 StorageService.setUserData(response.data.data.user); 45 46 $state.go("a24Busqueda"); 47 48 }, function(error){ 49 $scope.errorLogin = true; 50 }) 51 } 52 53 }) 54 55})();
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.