1/** 2 * Controller 3 * @memberOf Controller 4 * @namespace CidadaoController 5 * @desc Este controller contém as definicoes globais utilizadas na parte do Cidadao 6 * @example 7 * //No HTML 8 * <div ng-controller="cidadao.controller"></div> 9 */ 10(function() { 11 "use strict"; 12 13 angular 14 .module("cidadao.module") 15 .controller("cidadao.controller", CidadaoController); 16 17 CidadaoController.$inject = [ 18 "$rootScope", 19 "$state", 20 "$stateParams", 21 "ngNotify", 22 "cidadao.service", 23 "$window" 24 ]; 25 26 function CidadaoController( 27 $rootScope, 28 $state, 29 $stateParams, 30 ngNotify, 31 CidadaoService, 32 $window 33 ) { 34 // =============== CONFIGS =============== 35 var cidadaoCtrl = this; 36 37 // =============== VARIAVEIS AUXILIARES =============== 38 39 // =============== VARIAVEIS CONTROLLER =============== 40 41 // ================ FUNCOES CONTROLLER ================ 42 43 cidadaoCtrl.logout = function () { 44 CidadaoService.logout() 45 .then(function (response) { 46 if(response.data){ 47 $window.open(response.data, '_self'); 48 } 49 }).catch(function (response) { 50 if (response.status != 404) { 51 ngNotify.set(response.error.message, 'error'); 52 } 53 }); 54 } 55 } 56})();
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.